#2D217C#2D217C
#2D217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.146 H 280.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2D217C |
|---|---|
| RGB | rgb(45, 33, 124) |
| HSL | hsl(248, 58%, 31%) |
| HSV | hsv(248, 73%, 49%) |
| CMYK | cmyk(63.7%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(20.44, 33.50, -49.68) |
| CIE-LCH | lch(20.44, 59.92, 303.99°) |
| OKLab | oklab(32.86% 0.0271 -0.1432) |
| OKLCH | oklch(32.86% 0.146 280.7) |
| XYZ | xyz(5.2630, 3.1005, 19.3860) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.25
Royal
#0C1793
ΔE00 4.89
Indigo (survey)
#380282
ΔE00 5.82
Dark Royal Blue
#02066F
ΔE00 6.56
Deep Blue
#040273
ΔE00 6.89
Navy
#000080
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D217C #707C21
analogous
#21427C #2D217C #5A217C
triadic
#2D217C #7C2D21 #217C2D
tetradic
#2D217C #7C2142 #707C21 #217C5A
square
#2D217C #7C2142 #707C21 #217C5A
split-complementary
#2D217C #7C5A21 #427C21
monochromatic
#0A071B #1B144C #2D217C #3F2EAC #5A49CF
Accessibility & contrast
On white
12.96
#2D217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2D217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D217C
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D217C | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2d217c; /* rgb */ color: rgb(45, 33, 124); /* oklch */ color: oklch(32.9% 0.146 280.7);
Tailwind
colors: {
custom: {
50: '#705ea3',
500: '#2d217c',
950: '#000000',
},
}SCSS
$custom: #2d217c; $custom-light: #705ea3; $custom-dark: #000000;
JSON
{
"hex": "#2d217c",
"rgb": {
"r": 45,
"g": 33,
"b": 124
},
"hsl": {
"h": 247.912,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.32861,
"c": 0.14579,
"h": 280.7
},
"luminance": 0.03101
}Semantic roles & 50–950 ramp
primary
#2D217C
secondary
#A2AF4A
accent
#E147CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F