#27176E#27176E
#27176E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.140 H 281.9°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).
Color values
| HEX | #27176E |
|---|---|
| RGB | rgb(39, 23, 110) |
| HSL | hsl(251, 65%, 26%) |
| HSV | hsv(251, 79%, 43%) |
| CMYK | cmyk(64.5%, 79.1%, 0%, 56.9%) |
| CIE-LAB | lab(16.35, 33.83, -47.42) |
| CIE-LCH | lch(16.35, 58.25, 305.51°) |
| OKLab | oklab(29.39% 0.0289 -0.1368) |
| OKLCH | oklch(29.39% 0.14 281.9) |
| XYZ | xyz(3.9567, 2.1696, 14.9591) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.09
Dark Royal Blue
#02066F
ΔE00 4.44
Darkblue (survey)
#030764
ΔE00 4.54
Deep Blue
#040273
ΔE00 4.93
Dark Indigo
#1F0954
ΔE00 4.94
Indigo (survey)
#380282
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27176E #5E6E17
analogous
#17326E #27176E #52176E
triadic
#27176E #6E2717 #176E27
tetradic
#27176E #6E1732 #5E6E17 #176E52
square
#27176E #6E1732 #5E6E17 #176E52
split-complementary
#27176E #6E5217 #326E17
monochromatic
#090519 #150C3B #27176E #3922A1 #4B2CD3
Accessibility & contrast
On white
14.64
#27176E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#27176E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27176E
14.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27176E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27176E | 1.00 | 14.64 | 1.43 | 14.64 |
| #FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #27176e; /* rgb */ color: rgb(39, 23, 110); /* oklch */ color: oklch(29.4% 0.140 281.9);
Tailwind
colors: {
custom: {
50: '#6b5699',
500: '#27176e',
950: '#000000',
},
}SCSS
$custom: #27176e; $custom-light: #6b5699; $custom-dark: #000000;
JSON
{
"hex": "#27176e",
"rgb": {
"r": 39,
"g": 23,
"b": 110
},
"hsl": {
"h": 251.034,
"s": 65.414,
"l": 26.078
},
"oklch": {
"l": 0.29386,
"c": 0.13978,
"h": 281.9
},
"luminance": 0.0217
}Semantic roles & 50–950 ramp
primary
#27176E
secondary
#91A43D
accent
#E83FC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E