#2D217F#2D217F
#2D217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.150 H 280.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2D217F |
|---|---|
| RGB | rgb(45, 33, 127) |
| HSL | hsl(248, 59%, 31%) |
| HSV | hsv(248, 74%, 50%) |
| CMYK | cmyk(64.6%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(20.74, 34.51, -51.10) |
| CIE-LCH | lch(20.74, 61.66, 304.03°) |
| OKLab | oklab(33.17% 0.0265 -0.1474) |
| OKLCH | oklch(33.17% 0.15 280.2) |
| XYZ | xyz(5.4556, 3.1775, 20.4004) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.49
Royal
#0C1793
ΔE00 4.50
Indigo (survey)
#380282
ΔE00 5.67
Dark Royal Blue
#02066F
ΔE00 6.62
Darkblue
#00008B
ΔE00 6.69
Navy
#000080
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D217F #737F21
analogous
#21447F #2D217F #5C217F
triadic
#2D217F #7F2D21 #217F2D
tetradic
#2D217F #7F2144 #737F21 #217F5C
square
#2D217F #7F2144 #737F21 #217F5C
split-complementary
#2D217F #7F5C21 #447F21
monochromatic
#0B081E #1C144E #2D217F #3E2EB0 #5B4AD0
Accessibility & contrast
On white
12.84
#2D217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2D217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D217F
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D217F | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2d217f; /* rgb */ color: rgb(45, 33, 127); /* oklch */ color: oklch(33.2% 0.150 280.2);
Tailwind
colors: {
custom: {
50: '#715ea5',
500: '#2d217f',
950: '#000000',
},
}SCSS
$custom: #2d217f; $custom-light: #715ea5; $custom-dark: #000000;
JSON
{
"hex": "#2d217f",
"rgb": {
"r": 45,
"g": 33,
"b": 127
},
"hsl": {
"h": 247.66,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33165,
"c": 0.14974,
"h": 280.2
},
"luminance": 0.03178
}Semantic roles & 50–950 ramp
primary
#2D217F
secondary
#A4B24A
accent
#E246CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F