#2D217B#2D217B
#2D217B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.144 H 280.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2D217B |
|---|---|
| RGB | rgb(45, 33, 123) |
| HSL | hsl(248, 58%, 31%) |
| HSV | hsv(248, 73%, 48%) |
| CMYK | cmyk(63.4%, 73.2%, 0%, 51.8%) |
| CIE-LAB | lab(20.34, 33.16, -49.21) |
| CIE-LCH | lch(20.34, 59.34, 303.98°) |
| OKLab | oklab(32.76% 0.0273 -0.1419) |
| OKLCH | oklch(32.76% 0.144 280.9) |
| XYZ | xyz(5.2001, 3.0753, 19.0546) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.18
Royal
#0C1793
ΔE00 5.03
Indigo (survey)
#380282
ΔE00 5.88
Dark Royal Blue
#02066F
ΔE00 6.55
Deep Blue
#040273
ΔE00 6.90
Navy
#000080
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D217B #6F7B21
analogous
#21427B #2D217B #5A217B
triadic
#2D217B #7B2D21 #217B2D
tetradic
#2D217B #7B2142 #6F7B21 #217B5A
square
#2D217B #7B2142 #6F7B21 #217B5A
split-complementary
#2D217B #7B5A21 #427B21
monochromatic
#0A071A #1B144B #2D217B #3F2EAB #5A48CE
Accessibility & contrast
On white
13.00
#2D217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2D217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D217B
13.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D217B | 1.00 | 13.00 | 1.62 | 13.00 |
| #FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2d217b; /* rgb */ color: rgb(45, 33, 123); /* oklch */ color: oklch(32.8% 0.144 280.9);
Tailwind
colors: {
custom: {
50: '#705ea2',
500: '#2d217b',
950: '#000000',
},
}SCSS
$custom: #2d217b; $custom-light: #705ea2; $custom-dark: #000000;
JSON
{
"hex": "#2d217b",
"rgb": {
"r": 45,
"g": 33,
"b": 123
},
"hsl": {
"h": 248,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.3276,
"c": 0.14446,
"h": 280.9
},
"luminance": 0.03076
}Semantic roles & 50–950 ramp
primary
#2D217B
secondary
#A1AE4A
accent
#E147CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F