#27166E#27166E
#27166E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.141 H 282.1°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).
Color values
| HEX | #27166E |
|---|---|
| RGB | rgb(39, 22, 110) |
| HSL | hsl(252, 67%, 26%) |
| HSV | hsv(252, 80%, 43%) |
| CMYK | cmyk(64.5%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(16.16, 34.39, -47.74) |
| CIE-LCH | lch(16.16, 58.83, 305.77°) |
| OKLab | oklab(29.25% 0.0296 -0.1377) |
| OKLCH | oklch(29.25% 0.141 282.1) |
| XYZ | xyz(3.9372, 2.1307, 14.9526) |
| Luminance | 0.0213 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.21
Dark Royal Blue
#02066F
ΔE00 4.28
Darkblue (survey)
#030764
ΔE00 4.40
Deep Blue
#040273
ΔE00 4.75
Dark Indigo
#1F0954
ΔE00 4.85
Indigo (survey)
#380282
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27166E #5D6E16
analogous
#16316E #27166E #53166E
triadic
#27166E #6E2716 #166E27
tetradic
#27166E #6E1631 #5D6E16 #166E53
square
#27166E #6E1631 #5D6E16 #166E53
split-complementary
#27166E #6E5316 #316E16
monochromatic
#09051A #150C3B #27166E #3920A1 #4B2AD4
Accessibility & contrast
On white
14.72
#27166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#27166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27166E
14.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27166E | 1.00 | 14.72 | 1.43 | 14.72 |
| #FFFFFF | 14.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #27166e; /* rgb */ color: rgb(39, 22, 110); /* oklch */ color: oklch(29.3% 0.141 282.1);
Tailwind
colors: {
custom: {
50: '#6c5699',
500: '#27166e',
950: '#000000',
},
}SCSS
$custom: #27166e; $custom-light: #6c5699; $custom-dark: #000000;
JSON
{
"hex": "#27166e",
"rgb": {
"r": 39,
"g": 22,
"b": 110
},
"hsl": {
"h": 251.591,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.2925,
"c": 0.14083,
"h": 282.1
},
"luminance": 0.02131
}Semantic roles & 50–950 ramp
primary
#27166E
secondary
#90A43C
accent
#EA3EC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E