#6840BB

#6840bb ≈ Ocean Blue

  • violet
  • Lightness: medium
  • Saturation: moderate
  • Cool

#6840bb is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 40.78% red, 25.1% green and 73.33% blue; printed in CMYK it uses 44.39% cyan, 65.78% magenta, 0% yellow and 26.67% black. Its hue angle is 259.51°, with 49% saturation and 49.22% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and brand accents. White text on this color reaches a contrast ratio of 6.91:1 (WCAG AA). The closest named color is Ocean Blue (#4f42b5), ΔE 4.43.

Description generated from the measured properties of this color.

Conversions of #6840bb into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#6633cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.102

Readable text 6.91:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.04:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5a5a5a ≈ 0.003% of males
Achromatomaly #60518b ≈ 0.001% of males
Protanopia #005bbf ≈ 1.01% of males
Deuteranopia #0058b8 ≈ 1.27% of males
Tritanopia #505d78 ≈ 0.0001% of males
Protanomaly #3852bd ≈ 1.08% of males
Deuteranomaly #3b4fb9 ≈ 4.63% of males
Tritanomaly #5b5397 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-6840bb {
  color: #6840bb;
}
Background
.bg-6840bb {
  background-color: #6840bb;
  color: #ffffff;
}
Border
.border-6840bb {
  border: 2px solid #6840bb;
}
CSS variables
:root {
  --color-primary: #6840bb;
  --color-primary-rgb: 104 64 187;
  --color-primary-hsl: 260 49% 49%;
}
Gradient
.gradient-6840bb {
  background: linear-gradient(135deg, #6840bb, #a640bb);
}
Colored shadow
.shadow-6840bb {
  box-shadow: 0 8px 24px rgb(104 64 187 / 0.35);
}

Ocean Blue
#6840bb  rgb(104, 64, 187)  hsl(260, 49%, 49%)  Ocean Blue
#93bb40  rgb(147, 187, 64)  hsl(80, 49%, 49%)  Apple Green
#bb6840  rgb(187, 104, 64)  hsl(20, 49%, 49%)  Chocolate
#40bb68  rgb(64, 187, 104)  hsl(140, 49%, 49%)  Medium Sea Green