#2E31B6#2E31B6
#2E31B6 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.3% C 0.202 H 272.3°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2E31B6 |
|---|---|
| RGB | rgb(46, 49, 182) |
| HSL | hsl(239, 60%, 45%) |
| HSV | hsv(239, 75%, 71%) |
| CMYK | cmyk(74.7%, 73.1%, 0%, 28.6%) |
| CIE-LAB | lab(29.80, 43.77, -69.87) |
| CIE-LCH | lch(29.80, 82.45, 302.06°) |
| OKLab | oklab(41.32% 0.008 -0.2022) |
| OKLCH | oklch(41.32% 0.202 272.3) |
| XYZ | xyz(10.6657, 6.1537, 44.8726) |
| Luminance | 0.0616 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.17
Indigo Blue
#3A18B1
ΔE00 5.22
Blue Blue
#2242C7
ΔE00 5.25
Ocean Blue
#4F42B5
ΔE00 5.57
Blue With A Hint Of Purple
#533CC6
ΔE00 5.60
Blurple
#5539CC
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E31B6 #B6B32E
analogous
#2E75B6 #2E31B6 #6F2EB6
triadic
#2E31B6 #B62E31 #31B62E
tetradic
#2E31B6 #B62E75 #B6B32E #2EB66F
square
#2E31B6 #B62E75 #B6B32E #2EB66F
split-complementary
#2E31B6 #B66F2E #75B62E
monochromatic
#151754 #222485 #2E31B6 #4F52D2 #8082DF
Accessibility & contrast
On white
9.41
#2E31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2E31B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E31B6
9.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E31B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E31B6 | 1.00 | 9.41 | 2.23 | 9.41 |
| #FFFFFF | 9.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2e31b6; /* rgb */ color: rgb(46, 49, 182); /* oklch */ color: oklch(41.3% 0.202 272.3);
Tailwind
colors: {
custom: {
50: '#7d6acd',
500: '#2e31b6',
950: '#000000',
},
}SCSS
$custom: #2e31b6; $custom-light: #7d6acd; $custom-dark: #000000;
JSON
{
"hex": "#2e31b6",
"rgb": {
"r": 46,
"g": 49,
"b": 182
},
"hsl": {
"h": 238.676,
"s": 59.649,
"l": 44.706
},
"oklch": {
"l": 0.41324,
"c": 0.20238,
"h": 272.3
},
"luminance": 0.06155
}Semantic roles & 50–950 ramp
primary
#2E31B6
secondary
#C8C678
accent
#DF45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82