#2E1F7F#2E1F7F
#2E1F7F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.152 H 281.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F7F |
|---|---|
| RGB | rgb(46, 31, 127) |
| HSL | hsl(249, 61%, 31%) |
| HSV | hsv(249, 76%, 50%) |
| CMYK | cmyk(63.8%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(20.41, 35.82, -51.64) |
| CIE-LCH | lch(20.41, 62.84, 304.75°) |
| OKLab | oklab(32.95% 0.0295 -0.1489) |
| OKLCH | oklch(32.95% 0.152 281.2) |
| XYZ | xyz(5.4463, 3.0927, 20.3845) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.48
Royal
#0C1793
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 5.10
Dark Royal Blue
#02066F
ΔE00 6.31
Darkblue
#00008B
ΔE00 6.31
Navy
#000080
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F7F #707F1F
analogous
#1F407F #2E1F7F #5E1F7F
triadic
#2E1F7F #7F2E1F #1F7F2E
tetradic
#2E1F7F #7F1F40 #707F1F #1F7F5E
square
#2E1F7F #7F1F40 #707F1F #1F7F5E
split-complementary
#2E1F7F #7F5E1F #407F1F
monochromatic
#0A071D #1C134E #2E1F7F #402BB0 #5C46D2
Accessibility & contrast
On white
12.97
#2E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2E1F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F7F
12.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F7F | 1.00 | 12.97 | 1.62 | 12.97 |
| #FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1f7f; /* rgb */ color: rgb(46, 31, 127); /* oklch */ color: oklch(33.0% 0.152 281.2);
Tailwind
colors: {
custom: {
50: '#725da5',
500: '#2e1f7f',
950: '#000000',
},
}SCSS
$custom: #2e1f7f; $custom-light: #725da5; $custom-dark: #000000;
JSON
{
"hex": "#2e1f7f",
"rgb": {
"r": 46,
"g": 31,
"b": 127
},
"hsl": {
"h": 249.375,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.32954,
"c": 0.1518,
"h": 281.2
},
"luminance": 0.03093
}Semantic roles & 50–950 ramp
primary
#2E1F7F
secondary
#A1B248
accent
#E444CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F