#2E237E#2E237E
#2E237E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.146 H 280.5°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).
Color values
| HEX | #2E237E |
|---|---|
| RGB | rgb(46, 35, 126) |
| HSL | hsl(247, 57%, 32%) |
| HSV | hsv(247, 72%, 49%) |
| CMYK | cmyk(63.5%, 72.2%, 0%, 50.6%) |
| CIE-LAB | lab(21.17, 33.11, -49.76) |
| CIE-LCH | lch(21.17, 59.77, 303.64°) |
| OKLab | oklab(33.46% 0.0266 -0.1434) |
| OKLCH | oklch(33.46% 0.146 280.5) |
| XYZ | xyz(5.4925, 3.2889, 20.0800) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.68
Royal
#0C1793
ΔE00 4.97
Indigo (survey)
#380282
ΔE00 6.18
Dark Royal Blue
#02066F
ΔE00 7.06
Darkblue
#00008B
ΔE00 7.26
Navy
#000080
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E237E #737E23
analogous
#23467E #2E237E #5C237E
triadic
#2E237E #7E2E23 #237E2E
tetradic
#2E237E #7E2346 #737E23 #237E5C
square
#2E237E #7E2346 #737E23 #237E5C
split-complementary
#2E237E #7E5C23 #467E23
monochromatic
#0B081E #1D164E #2E237E #3F30AE #5D4ECE
Accessibility & contrast
On white
12.67
#2E237E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2E237E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E237E
12.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E237E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E237E | 1.00 | 12.67 | 1.66 | 12.67 |
| #FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e237e; /* rgb */ color: rgb(46, 35, 126); /* oklch */ color: oklch(33.5% 0.146 280.5);
Tailwind
colors: {
custom: {
50: '#715fa4',
500: '#2e237e',
950: '#000000',
},
}SCSS
$custom: #2e237e; $custom-light: #715fa4; $custom-dark: #000000;
JSON
{
"hex": "#2e237e",
"rgb": {
"r": 46,
"g": 35,
"b": 126
},
"hsl": {
"h": 247.253,
"s": 56.522,
"l": 31.569
},
"oklch": {
"l": 0.3346,
"c": 0.14589,
"h": 280.5
},
"luminance": 0.03289
}Semantic roles & 50–950 ramp
primary
#2E237E
secondary
#A4B04C
accent
#E048CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F