#27166F#27166F
#27166F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.142 H 281.9°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).
Color values
| HEX | #27166F |
|---|---|
| RGB | rgb(39, 22, 111) |
| HSL | hsl(251, 67%, 26%) |
| HSV | hsv(251, 80%, 44%) |
| CMYK | cmyk(64.9%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(16.27, 34.71, -48.21) |
| CIE-LCH | lch(16.27, 59.41, 305.76°) |
| OKLab | oklab(29.36% 0.0293 -0.1391) |
| OKLCH | oklch(29.36% 0.142 281.9) |
| XYZ | xyz(3.9920, 2.1526, 15.2410) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.18
Dark Royal Blue
#02066F
ΔE00 4.24
Darkblue (survey)
#030764
ΔE00 4.43
Deep Blue
#040273
ΔE00 4.68
Indigo (survey)
#380282
ΔE00 4.95
Dark Indigo
#1F0954
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27166F #5E6F16
analogous
#16316F #27166F #53166F
triadic
#27166F #6F2716 #166F27
tetradic
#27166F #6F1631 #5E6F16 #166F53
square
#27166F #6F1631 #5E6F16 #166F53
split-complementary
#27166F #6F5316 #316F16
monochromatic
#09051A #150C3C #27166F #3920A2 #4B2BD5
Accessibility & contrast
On white
14.68
#27166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#27166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27166F
14.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27166F | 1.00 | 14.68 | 1.43 | 14.68 |
| #FFFFFF | 14.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #27166f; /* rgb */ color: rgb(39, 22, 111); /* oklch */ color: oklch(29.4% 0.142 281.9);
Tailwind
colors: {
custom: {
50: '#6c5699',
500: '#27166f',
950: '#000000',
},
}SCSS
$custom: #27166f; $custom-light: #6c5699; $custom-dark: #000000;
JSON
{
"hex": "#27166f",
"rgb": {
"r": 39,
"g": 22,
"b": 111
},
"hsl": {
"h": 251.461,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.29359,
"c": 0.14212,
"h": 281.9
},
"luminance": 0.02153
}Semantic roles & 50–950 ramp
primary
#27166F
secondary
#91A53C
accent
#EA3EC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E