#2E31B2#2E31B2
#2E31B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.197 H 272.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2E31B2 |
|---|---|
| RGB | rgb(46, 49, 178) |
| HSL | hsl(239, 59%, 44%) |
| HSV | hsv(239, 74%, 70%) |
| CMYK | cmyk(74.2%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(29.39, 42.41, -68.17) |
| CIE-LCH | lch(29.39, 80.28, 301.89°) |
| OKLab | oklab(40.91% 0.0086 -0.1972) |
| OKLCH | oklch(40.91% 0.197 272.5) |
| XYZ | xyz(10.2582, 5.9908, 42.7266) |
| Luminance | 0.0599 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.90
Indigo Blue
#3A18B1
ΔE00 5.23
Blue Blue
#2242C7
ΔE00 5.49
Ocean Blue
#4F42B5
ΔE00 5.66
Blue With A Hint Of Purple
#533CC6
ΔE00 5.92
True Blue
#010FCC
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E31B2 #B2AF2E
analogous
#2E73B2 #2E31B2 #6D2EB2
triadic
#2E31B2 #B22E31 #31B22E
tetradic
#2E31B2 #B22E73 #B2AF2E #2EB26D
square
#2E31B2 #B22E73 #B2AF2E #2EB26D
split-complementary
#2E31B2 #B26D2E #73B22E
monochromatic
#151651 #212481 #2E31B2 #4C4FD1 #7D7FDD
Accessibility & contrast
On white
9.55
#2E31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#2E31B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E31B2
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E31B2 | 1.00 | 9.55 | 2.20 | 9.55 |
| #FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2e31b2; /* rgb */ color: rgb(46, 49, 178); /* oklch */ color: oklch(40.9% 0.197 272.5);
Tailwind
colors: {
custom: {
50: '#7c6aca',
500: '#2e31b2',
950: '#000000',
},
}SCSS
$custom: #2e31b2; $custom-light: #7c6aca; $custom-dark: #000000;
JSON
{
"hex": "#2e31b2",
"rgb": {
"r": 46,
"g": 49,
"b": 178
},
"hsl": {
"h": 238.636,
"s": 58.929,
"l": 43.922
},
"oklch": {
"l": 0.40911,
"c": 0.19743,
"h": 272.5
},
"luminance": 0.05992
}Semantic roles & 50–950 ramp
primary
#2E31B2
secondary
#C6C476
accent
#DF46E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82