#2D1F7B#2D1F7B
#2D1F7B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.147 H 281.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1F7B |
|---|---|
| RGB | rgb(45, 31, 123) |
| HSL | hsl(249, 60%, 30%) |
| HSV | hsv(249, 75%, 48%) |
| CMYK | cmyk(63.4%, 74.8%, 0%, 51.8%) |
| CIE-LAB | lab(19.91, 34.36, -49.91) |
| CIE-LCH | lch(19.91, 60.59, 304.54°) |
| OKLab | oklab(32.45% 0.0289 -0.1439) |
| OKLCH | oklch(32.45% 0.147 281.4) |
| XYZ | xyz(5.1462, 2.9676, 19.0367) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.05
Royal
#0C1793
ΔE00 4.81
Indigo (survey)
#380282
ΔE00 5.36
Dark Royal Blue
#02066F
ΔE00 6.15
Deep Blue
#040273
ΔE00 6.46
Navy
#000080
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1F7B #6D7B1F
analogous
#1F3F7B #2D1F7B #5B1F7B
triadic
#2D1F7B #7B2D1F #1F7B2D
tetradic
#2D1F7B #7B1F3F #6D7B1F #1F7B5B
square
#2D1F7B #7B1F3F #6D7B1F #1F7B5B
split-complementary
#2D1F7B #7B5B1F #3F7B1F
monochromatic
#090619 #1B134A #2D1F7B #3F2BAC #5A44D0
Accessibility & contrast
On white
13.18
#2D1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2D1F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1F7B
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1F7B | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2d1f7b; /* rgb */ color: rgb(45, 31, 123); /* oklch */ color: oklch(32.5% 0.147 281.4);
Tailwind
colors: {
custom: {
50: '#705ca2',
500: '#2d1f7b',
950: '#000000',
},
}SCSS
$custom: #2d1f7b; $custom-light: #705ca2; $custom-dark: #000000;
JSON
{
"hex": "#2d1f7b",
"rgb": {
"r": 45,
"g": 31,
"b": 123
},
"hsl": {
"h": 249.13,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.32454,
"c": 0.14679,
"h": 281.4
},
"luminance": 0.02968
}Semantic roles & 50–950 ramp
primary
#2D1F7B
secondary
#9FAE48
accent
#E345CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F