#2D1B88#2D1B88
#2D1B88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.167 H 279.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1B88 |
|---|---|
| RGB | rgb(45, 27, 136) |
| HSL | hsl(250, 67%, 32%) |
| HSV | hsv(250, 80%, 53%) |
| CMYK | cmyk(66.9%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(20.51, 40.77, -57.15) |
| CIE-LCH | lch(20.51, 70.20, 305.51°) |
| OKLab | oklab(33.29% 0.0283 -0.165) |
| OKLCH | oklch(33.29% 0.167 279.7) |
| XYZ | xyz(5.9166, 3.1189, 23.5780) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.02
Indigo (survey)
#380282
ΔE00 4.19
Midnight Blue
#191970
ΔE00 4.44
Darkblue
#00008B
ΔE00 5.07
Cobalt Blue
#030AA7
ΔE00 5.17
Navy
#000080
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1B88 #76881B
analogous
#1B4088 #2D1B88 #641B88
triadic
#2D1B88 #882D1B #1B882D
tetradic
#2D1B88 #881B40 #76881B #1B8864
square
#2D1B88 #881B40 #76881B #1B8864
split-complementary
#2D1B88 #88641B #40881B
monochromatic
#0B0722 #1C1155 #2D1B88 #3E25BB #5C44DA
Accessibility & contrast
On white
12.93
#2D1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2D1B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1B88
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1B88 | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2d1b88; /* rgb */ color: rgb(45, 27, 136); /* oklch */ color: oklch(33.3% 0.167 279.7);
Tailwind
colors: {
custom: {
50: '#745bac',
500: '#2d1b88',
950: '#000000',
},
}SCSS
$custom: #2d1b88; $custom-light: #745bac; $custom-dark: #000000;
JSON
{
"hex": "#2d1b88",
"rgb": {
"r": 45,
"g": 27,
"b": 136
},
"hsl": {
"h": 249.908,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.3329,
"c": 0.16739,
"h": 279.7
},
"luminance": 0.03119
}Semantic roles & 50–950 ramp
primary
#2D1B88
secondary
#A7BB44
accent
#EA3ECD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F