#2E1F9C#2E1F9C
#2E1F9C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.188 H 276.7°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F9C |
|---|---|
| RGB | rgb(46, 31, 156) |
| HSL | hsl(247, 67%, 37%) |
| HSV | hsv(247, 80%, 61%) |
| CMYK | cmyk(70.5%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(23.54, 45.12, -64.53) |
| CIE-LCH | lch(23.54, 78.74, 304.96°) |
| OKLab | oklab(36.08% 0.0221 -0.1865) |
| OKLCH | oklch(36.08% 0.188 276.7) |
| XYZ | xyz(7.6155, 3.9604, 31.8091) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.24
Indigo Blue
#3A18B1
ΔE00 3.37
Cobalt Blue
#030AA7
ΔE00 3.95
Royal Blue (survey)
#0504AA
ΔE00 4.39
Ultramarine
#2000B1
ΔE00 4.46
Indigo (survey)
#380282
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F9C #8D9C1F
analogous
#1F4F9C #2E1F9C #6D1F9C
triadic
#2E1F9C #9C2E1F #1F9C2E
tetradic
#2E1F9C #9C1F4F #8D9C1F #1F9C6D
square
#2E1F9C #9C1F4F #8D9C1F #1F9C6D
split-complementary
#2E1F9C #9C6D1F #4F9C1F
monochromatic
#100B36 #1F1569 #2E1F9C #3D29CF #6858DE
Accessibility & contrast
On white
11.72
#2E1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2E1F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F9C
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F9C | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2e1f9c; /* rgb */ color: rgb(46, 31, 156); /* oklch */ color: oklch(36.1% 0.188 276.7);
Tailwind
colors: {
custom: {
50: '#785eba',
500: '#2e1f9c',
950: '#000000',
},
}SCSS
$custom: #2e1f9c; $custom-light: #785eba; $custom-dark: #000000;
JSON
{
"hex": "#2e1f9c",
"rgb": {
"r": 46,
"g": 31,
"b": 156
},
"hsl": {
"h": 247.2,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.36083,
"c": 0.18781,
"h": 276.7
},
"luminance": 0.03961
}Semantic roles & 50–950 ramp
primary
#2E1F9C
secondary
#B5C155
accent
#EA3ED5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981