#2E1F7B#2E1F7B
#2E1F7B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.147 H 282.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F7B |
|---|---|
| RGB | rgb(46, 31, 123) |
| HSL | hsl(250, 60%, 30%) |
| HSV | hsv(250, 75%, 48%) |
| CMYK | cmyk(62.6%, 74.8%, 0%, 51.8%) |
| CIE-LAB | lab(20.01, 34.50, -49.76) |
| CIE-LCH | lch(20.01, 60.55, 304.74°) |
| OKLab | oklab(32.54% 0.0304 -0.1434) |
| OKLCH | oklch(32.54% 0.147 282) |
| XYZ | xyz(5.1907, 2.9905, 19.0387) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.16
Royal
#0C1793
ΔE00 4.89
Indigo (survey)
#380282
ΔE00 5.29
Dark Royal Blue
#02066F
ΔE00 6.22
Deep Blue
#040273
ΔE00 6.51
Navy
#000080
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F7B #6C7B1F
analogous
#1F3E7B #2E1F7B #5C1F7B
triadic
#2E1F7B #7B2E1F #1F7B2E
tetradic
#2E1F7B #7B1F3E #6C7B1F #1F7B5C
square
#2E1F7B #7B1F3E #6C7B1F #1F7B5C
split-complementary
#2E1F7B #7B5C1F #3E7B1F
monochromatic
#090619 #1C134A #2E1F7B #402BAC #5B44D0
Accessibility & contrast
On white
13.14
#2E1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2E1F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F7B
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F7B | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e1f7b; /* rgb */ color: rgb(46, 31, 123); /* oklch */ color: oklch(32.5% 0.147 282.0);
Tailwind
colors: {
custom: {
50: '#715ca2',
500: '#2e1f7b',
950: '#000000',
},
}SCSS
$custom: #2e1f7b; $custom-light: #715ca2; $custom-dark: #000000;
JSON
{
"hex": "#2e1f7b",
"rgb": {
"r": 46,
"g": 31,
"b": 123
},
"hsl": {
"h": 249.783,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.32543,
"c": 0.14662,
"h": 282
},
"luminance": 0.02991
}Semantic roles & 50–950 ramp
primary
#2E1F7B
secondary
#9EAE48
accent
#E345C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F