#2D1F88#2D1F88
#2D1F88 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.163 H 279.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1F88 |
|---|---|
| RGB | rgb(45, 31, 136) |
| HSL | hsl(248, 63%, 33%) |
| HSV | hsv(248, 77%, 53%) |
| CMYK | cmyk(66.9%, 77.2%, 0%, 46.7%) |
| CIE-LAB | lab(21.26, 38.63, -55.91) |
| CIE-LCH | lch(21.26, 67.96, 304.64°) |
| OKLab | oklab(33.82% 0.0259 -0.1614) |
| OKLCH | oklch(33.82% 0.163 279.1) |
| XYZ | xyz(6.0147, 3.3149, 23.6107) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.31
Midnight Blue
#191970
ΔE00 4.41
Indigo (survey)
#380282
ΔE00 5.04
Cobalt Blue
#030AA7
ΔE00 5.63
Darkblue
#00008B
ΔE00 5.82
Indigo Blue
#3A18B1
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1F88 #7A881F
analogous
#1F4588 #2D1F88 #611F88
triadic
#2D1F88 #882D1F #1F882D
tetradic
#2D1F88 #881F45 #7A881F #1F8861
square
#2D1F88 #881F45 #7A881F #1F8861
split-complementary
#2D1F88 #88611F #45881F
monochromatic
#0C0824 #1D1456 #2D1F88 #3D2ABA #5E4BD6
Accessibility & contrast
On white
12.63
#2D1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#2D1F88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1F88
12.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1F88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1F88 | 1.00 | 12.63 | 1.66 | 12.63 |
| #FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2d1f88; /* rgb */ color: rgb(45, 31, 136); /* oklch */ color: oklch(33.8% 0.163 279.1);
Tailwind
colors: {
custom: {
50: '#735dac',
500: '#2d1f88',
950: '#000000',
},
}SCSS
$custom: #2d1f88; $custom-light: #735dac; $custom-dark: #000000;
JSON
{
"hex": "#2d1f88",
"rgb": {
"r": 45,
"g": 31,
"b": 136
},
"hsl": {
"h": 248,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.33816,
"c": 0.16348,
"h": 279.1
},
"luminance": 0.03315
}Semantic roles & 50–950 ramp
primary
#2D1F88
secondary
#AAB94A
accent
#E642D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F