#2E1F9B#2E1F9B
#2E1F9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.187 H 276.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1F9B |
|---|---|
| RGB | rgb(46, 31, 155) |
| HSL | hsl(247, 67%, 36%) |
| HSV | hsv(247, 80%, 61%) |
| CMYK | cmyk(70.3%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(23.43, 44.81, -64.11) |
| CIE-LCH | lch(23.43, 78.22, 304.95°) |
| OKLab | oklab(35.97% 0.0223 -0.1853) |
| OKLCH | oklch(35.97% 0.187 276.9) |
| XYZ | xyz(7.5312, 3.9267, 31.3650) |
| Luminance | 0.0393 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.18
Indigo Blue
#3A18B1
ΔE00 3.49
Cobalt Blue
#030AA7
ΔE00 4.00
Royal Blue (survey)
#0504AA
ΔE00 4.44
Ultramarine
#2000B1
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1F9B #8C9B1F
analogous
#1F4E9B #2E1F9B #6C1F9B
triadic
#2E1F9B #9B2E1F #1F9B2E
tetradic
#2E1F9B #9B1F4E #8C9B1F #1F9B6C
square
#2E1F9B #9B1F4E #8C9B1F #1F9B6C
split-complementary
#2E1F9B #9B6C1F #4E9B1F
monochromatic
#100B35 #1F1568 #2E1F9B #3D29CE #6757DD
Accessibility & contrast
On white
11.76
#2E1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2E1F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1F9B
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1F9B | 1.00 | 11.76 | 1.79 | 11.76 |
| #FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2e1f9b; /* rgb */ color: rgb(46, 31, 155); /* oklch */ color: oklch(36.0% 0.187 276.9);
Tailwind
colors: {
custom: {
50: '#785eba',
500: '#2e1f9b',
950: '#000000',
},
}SCSS
$custom: #2e1f9b; $custom-light: #785eba; $custom-dark: #000000;
JSON
{
"hex": "#2e1f9b",
"rgb": {
"r": 46,
"g": 31,
"b": 155
},
"hsl": {
"h": 247.258,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.35971,
"c": 0.18661,
"h": 276.9
},
"luminance": 0.03927
}Semantic roles & 50–950 ramp
primary
#2E1F9B
secondary
#B4C155
accent
#EA3ED5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981