#2D1F7D#2D1F7D
#2D1F7D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.149 H 281.0°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1F7D |
|---|---|
| RGB | rgb(45, 31, 125) |
| HSL | hsl(249, 60%, 31%) |
| HSV | hsv(249, 75%, 49%) |
| CMYK | cmyk(64%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(20.12, 35.02, -50.85) |
| CIE-LCH | lch(20.12, 61.75, 304.55°) |
| OKLab | oklab(32.66% 0.0285 -0.1467) |
| OKLCH | oklch(32.66% 0.149 281) |
| XYZ | xyz(5.2727, 3.0181, 19.7028) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.20
Royal
#0C1793
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 5.25
Dark Royal Blue
#02066F
ΔE00 6.19
Darkblue
#00008B
ΔE00 6.41
Navy
#000080
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1F7D #6F7D1F
analogous
#1F407D #2D1F7D #5C1F7D
triadic
#2D1F7D #7D2D1F #1F7D2D
tetradic
#2D1F7D #7D1F40 #6F7D1F #1F7D5C
square
#2D1F7D #7D1F40 #6F7D1F #1F7D5C
split-complementary
#2D1F7D #7D5C1F #407D1F
monochromatic
#0A071B #1B134C #2D1F7D #3F2BAE #5A45D1
Accessibility & contrast
On white
13.09
#2D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2D1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1F7D
13.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1F7D | 1.00 | 13.09 | 1.60 | 13.09 |
| #FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2d1f7d; /* rgb */ color: rgb(45, 31, 125); /* oklch */ color: oklch(32.7% 0.149 281.0);
Tailwind
colors: {
custom: {
50: '#715ca4',
500: '#2d1f7d',
950: '#000000',
},
}SCSS
$custom: #2d1f7d; $custom-light: #715ca4; $custom-dark: #000000;
JSON
{
"hex": "#2d1f7d",
"rgb": {
"r": 45,
"g": 31,
"b": 125
},
"hsl": {
"h": 248.936,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.3266,
"c": 0.1494,
"h": 281
},
"luminance": 0.03019
}Semantic roles & 50–950 ramp
primary
#2D1F7D
secondary
#A1B048
accent
#E344CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F