#27217E#27217E
#27217E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.150 H 277.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #27217E |
|---|---|
| RGB | rgb(39, 33, 126) |
| HSL | hsl(244, 58%, 31%) |
| HSV | hsv(244, 74%, 49%) |
| CMYK | cmyk(69%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(20.14, 33.35, -51.46) |
| CIE-LCH | lch(20.14, 61.32, 302.95°) |
| OKLab | oklab(32.58% 0.0181 -0.1486) |
| OKLCH | oklch(32.58% 0.15 277) |
| XYZ | xyz(5.1452, 3.0250, 20.0473) |
| Luminance | 0.0302 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.97
Royal
#0C1793
ΔE00 4.30
Indigo (survey)
#380282
ΔE00 6.18
Dark Royal Blue
#02066F
ΔE00 6.34
Darkblue
#00008B
ΔE00 6.60
Navy
#000080
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27217E #787E21
analogous
#21497E #27217E #55217E
triadic
#27217E #7E2721 #217E27
tetradic
#27217E #7E2149 #787E21 #217E55
square
#27217E #7E2149 #787E21 #217E55
split-complementary
#27217E #7E5521 #497E21
monochromatic
#09081D #18144E #27217E #362EAE #524AD0
Accessibility & contrast
On white
13.08
#27217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#27217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27217E
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27217E | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #27217e; /* rgb */ color: rgb(39, 33, 126); /* oklch */ color: oklch(32.6% 0.150 277.0);
Tailwind
colors: {
custom: {
50: '#6e5da4',
500: '#27217e',
950: '#000000',
},
}SCSS
$custom: #27217e; $custom-light: #6e5da4; $custom-dark: #000000;
JSON
{
"hex": "#27217e",
"rgb": {
"r": 39,
"g": 33,
"b": 126
},
"hsl": {
"h": 243.871,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.32582,
"c": 0.14973,
"h": 277
},
"luminance": 0.03025
}Semantic roles & 50–950 ramp
primary
#27217E
secondary
#AAB14A
accent
#E246D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F