#2E1F7C#2E1F7C
#2E1F7C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.148 H 281.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F7C |
|---|---|
| RGB | rgb(46, 31, 124) |
| HSL | hsl(250, 60%, 30%) |
| HSV | hsv(250, 75%, 49%) |
| CMYK | cmyk(62.9%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(20.11, 34.83, -50.23) |
| CIE-LCH | lch(20.11, 61.13, 304.74°) |
| OKLab | oklab(32.65% 0.0302 -0.1448) |
| OKLCH | oklch(32.65% 0.148 281.8) |
| XYZ | xyz(5.2537, 3.0157, 19.3701) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.23
Royal
#0C1793
ΔE00 4.75
Indigo (survey)
#380282
ΔE00 5.24
Dark Royal Blue
#02066F
ΔE00 6.23
Deep Blue
#040273
ΔE00 6.51
Navy
#000080
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F7C #6D7C1F
analogous
#1F3F7C #2E1F7C #5C1F7C
triadic
#2E1F7C #7C2E1F #1F7C2E
tetradic
#2E1F7C #7C1F3F #6D7C1F #1F7C5C
square
#2E1F7C #7C1F3F #6D7C1F #1F7C5C
split-complementary
#2E1F7C #7C5C1F #3F7C1F
monochromatic
#0A071A #1C134B #2E1F7C #402BAD #5B45D0
Accessibility & contrast
On white
13.10
#2E1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2E1F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F7C
13.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F7C | 1.00 | 13.10 | 1.60 | 13.10 |
| #FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2e1f7c; /* rgb */ color: rgb(46, 31, 124); /* oklch */ color: oklch(32.6% 0.148 281.8);
Tailwind
colors: {
custom: {
50: '#715ca3',
500: '#2e1f7c',
950: '#000000',
},
}SCSS
$custom: #2e1f7c; $custom-light: #715ca3; $custom-dark: #000000;
JSON
{
"hex": "#2e1f7c",
"rgb": {
"r": 46,
"g": 31,
"b": 124
},
"hsl": {
"h": 249.677,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.32645,
"c": 0.14792,
"h": 281.8
},
"luminance": 0.03016
}Semantic roles & 50–950 ramp
primary
#2E1F7C
secondary
#9FAF48
accent
#E345CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F