#2E227B#2E227B
#2E227B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.143 H 281.3°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2E227B |
|---|---|
| RGB | rgb(46, 34, 123) |
| HSL | hsl(248, 57%, 31%) |
| HSV | hsv(248, 72%, 48%) |
| CMYK | cmyk(62.6%, 72.4%, 0%, 51.8%) |
| CIE-LAB | lab(20.65, 32.71, -48.70) |
| CIE-LCH | lch(20.65, 58.66, 303.89°) |
| OKLab | oklab(33% 0.028 -0.1403) |
| OKLCH | oklch(33% 0.143 281.3) |
| XYZ | xyz(5.2728, 3.1546, 19.0661) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.39
Royal
#0C1793
ΔE00 5.23
Indigo (survey)
#380282
ΔE00 6.07
Dark Royal Blue
#02066F
ΔE00 6.82
Deep Blue
#040273
ΔE00 7.17
Navy
#000080
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E227B #6F7B22
analogous
#22427B #2E227B #5A227B
triadic
#2E227B #7B2E22 #227B2E
tetradic
#2E227B #7B2242 #6F7B22 #227B5A
square
#2E227B #7B2242 #6F7B22 #227B5A
split-complementary
#2E227B #7B5A22 #427B22
monochromatic
#0A071B #1C154B #2E227B #402FAB #5C4ACD
Accessibility & contrast
On white
12.88
#2E227B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2E227B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E227B
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E227B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E227B | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2e227b; /* rgb */ color: rgb(46, 34, 123); /* oklch */ color: oklch(33.0% 0.143 281.3);
Tailwind
colors: {
custom: {
50: '#715ea2',
500: '#2e227b',
950: '#000000',
},
}SCSS
$custom: #2e227b; $custom-light: #715ea2; $custom-dark: #000000;
JSON
{
"hex": "#2e227b",
"rgb": {
"r": 46,
"g": 34,
"b": 123
},
"hsl": {
"h": 248.09,
"s": 56.688,
"l": 30.784
},
"oklch": {
"l": 0.33004,
"c": 0.14309,
"h": 281.3
},
"luminance": 0.03155
}Semantic roles & 50–950 ramp
primary
#2E227B
secondary
#A0AE4B
accent
#E048CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F