#2E227E#2E227E
#2E227E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.147 H 280.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2E227E |
|---|---|
| RGB | rgb(46, 34, 126) |
| HSL | hsl(248, 58%, 31%) |
| HSV | hsv(248, 73%, 49%) |
| CMYK | cmyk(63.5%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(20.95, 33.72, -50.12) |
| CIE-LCH | lch(20.95, 60.41, 303.93°) |
| OKLab | oklab(33.3% 0.0274 -0.1445) |
| OKLCH | oklch(33.3% 0.147 280.7) |
| XYZ | xyz(5.4634, 3.2309, 20.0703) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.58
Royal
#0C1793
ΔE00 4.83
Indigo (survey)
#380282
ΔE00 5.91
Dark Royal Blue
#02066F
ΔE00 6.85
Darkblue
#00008B
ΔE00 7.03
Navy
#000080
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E227E #727E22
analogous
#22447E #2E227E #5C227E
triadic
#2E227E #7E2E22 #227E2E
tetradic
#2E227E #7E2244 #727E22 #227E5C
square
#2E227E #7E2244 #727E22 #227E5C
split-complementary
#2E227E #7E5C22 #447E22
monochromatic
#0B081E #1C154E #2E227E #402FAE #5D4CCF
Accessibility & contrast
On white
12.76
#2E227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2E227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E227E
12.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E227E | 1.00 | 12.76 | 1.65 | 12.76 |
| #FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2e227e; /* rgb */ color: rgb(46, 34, 126); /* oklch */ color: oklch(33.3% 0.147 280.7);
Tailwind
colors: {
custom: {
50: '#715ea4',
500: '#2e227e',
950: '#000000',
},
}SCSS
$custom: #2e227e; $custom-light: #715ea4; $custom-dark: #000000;
JSON
{
"hex": "#2e227e",
"rgb": {
"r": 46,
"g": 34,
"b": 126
},
"hsl": {
"h": 247.826,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.33303,
"c": 0.14708,
"h": 280.7
},
"luminance": 0.03231
}Semantic roles & 50–950 ramp
primary
#2E227E
secondary
#A3B14B
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F