#2D1F9B#2D1F9B
#2D1F9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.187 H 276.4°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1F9B |
|---|---|
| RGB | rgb(45, 31, 155) |
| HSL | hsl(247, 67%, 36%) |
| HSV | hsv(247, 80%, 61%) |
| CMYK | cmyk(71%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(23.35, 44.72, -64.24) |
| CIE-LCH | lch(23.35, 78.27, 304.84°) |
| OKLab | oklab(35.9% 0.0209 -0.1857) |
| OKLCH | oklch(35.9% 0.187 276.4) |
| XYZ | xyz(7.4866, 3.9037, 31.3629) |
| Luminance | 0.0390 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.09
Indigo Blue
#3A18B1
ΔE00 3.54
Cobalt Blue
#030AA7
ΔE00 3.95
Royal Blue (survey)
#0504AA
ΔE00 4.40
Ultramarine
#2000B1
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1F9B #8D9B1F
analogous
#1F4F9B #2D1F9B #6B1F9B
triadic
#2D1F9B #9B2D1F #1F9B2D
tetradic
#2D1F9B #9B1F4F #8D9B1F #1F9B6B
square
#2D1F9B #9B1F4F #8D9B1F #1F9B6B
split-complementary
#2D1F9B #9B6B1F #4F9B1F
monochromatic
#0F0B35 #1E1568 #2D1F9B #3C29CE #6657DD
Accessibility & contrast
On white
11.79
#2D1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2D1F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1F9B
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1F9B | 1.00 | 11.79 | 1.78 | 11.79 |
| #FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.79 | 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: #2d1f9b; /* rgb */ color: rgb(45, 31, 155); /* oklch */ color: oklch(35.9% 0.187 276.4);
Tailwind
colors: {
custom: {
50: '#785eba',
500: '#2d1f9b',
950: '#000000',
},
}SCSS
$custom: #2d1f9b; $custom-light: #785eba; $custom-dark: #000000;
JSON
{
"hex": "#2d1f9b",
"rgb": {
"r": 45,
"g": 31,
"b": 155
},
"hsl": {
"h": 246.774,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.35898,
"c": 0.18685,
"h": 276.4
},
"luminance": 0.03904
}Semantic roles & 50–950 ramp
primary
#2D1F9B
secondary
#B5C155
accent
#EA3ED6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981