#27117E#27117E
#27117E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.5% C 0.165 H 279.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #27117E |
|---|---|
| RGB | rgb(39, 17, 126) |
| HSL | hsl(252, 76%, 28%) |
| HSV | hsv(252, 87%, 49%) |
| CMYK | cmyk(69%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(17.17, 41.86, -56.37) |
| CIE-LCH | lch(17.17, 70.22, 306.60°) |
| OKLab | oklab(30.5% 0.0272 -0.1627) |
| OKLCH | oklch(30.5% 0.165 279.5) |
| XYZ | xyz(4.8018, 2.3382, 19.9329) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.06
Navy
#000080
ΔE00 3.63
Midnight Blue
#191970
ΔE00 3.67
Darkblue
#00008B
ΔE00 3.76
Royal
#0C1793
ΔE00 3.77
Deep Blue
#040273
ΔE00 3.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27117E #687E11
analogous
#11317E #27117E #5D117E
triadic
#27117E #7E2711 #117E27
tetradic
#27117E #7E1131 #687E11 #117E5D
square
#27117E #7E1131 #687E11 #117E5D
split-complementary
#27117E #7E5D11 #317E11
monochromatic
#08041B #160A48 #27117E #3818B4 #4D27E2
Accessibility & contrast
On white
14.31
#27117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#27117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27117E
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27117E | 1.00 | 14.31 | 1.47 | 14.31 |
| #FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #27117e; /* rgb */ color: rgb(39, 17, 126); /* oklch */ color: oklch(30.5% 0.165 279.5);
Tailwind
colors: {
custom: {
50: '#7054a5',
500: '#27117e',
950: '#000000',
},
}SCSS
$custom: #27117e; $custom-light: #7054a5; $custom-dark: #000000;
JSON
{
"hex": "#27117e",
"rgb": {
"r": 39,
"g": 17,
"b": 126
},
"hsl": {
"h": 252.11,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.30499,
"c": 0.165,
"h": 279.5
},
"luminance": 0.02339
}Semantic roles & 50–950 ramp
primary
#27117E
secondary
#9BB437
accent
#F335CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F