#27117F#27117F
#27117F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.166 H 279.3°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).
Color values
| HEX | #27117F |
|---|---|
| RGB | rgb(39, 17, 127) |
| HSL | hsl(252, 76%, 28%) |
| HSV | hsv(252, 87%, 50%) |
| CMYK | cmyk(69.3%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(17.29, 42.17, -56.81) |
| CIE-LCH | lch(17.29, 70.74, 306.59°) |
| OKLab | oklab(30.62% 0.0268 -0.164) |
| OKLCH | oklch(30.62% 0.166 279.3) |
| XYZ | xyz(4.8667, 2.3641, 20.2744) |
| Luminance | 0.0237 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.03
Navy
#000080
ΔE00 3.61
Royal
#0C1793
ΔE00 3.65
Darkblue
#00008B
ΔE00 3.68
Midnight Blue
#191970
ΔE00 3.76
Deep Blue
#040273
ΔE00 3.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27117F #697F11
analogous
#11327F #27117F #5E117F
triadic
#27117F #7F2711 #117F27
tetradic
#27117F #7F1132 #697F11 #117F5E
square
#27117F #7F1132 #697F11 #117F5E
split-complementary
#27117F #7F5E11 #327F11
monochromatic
#08041B #160A49 #27117F #3818B5 #4D28E2
Accessibility & contrast
On white
14.26
#27117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#27117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27117F
14.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27117F | 1.00 | 14.26 | 1.47 | 14.26 |
| #FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #27117f; /* rgb */ color: rgb(39, 17, 127); /* oklch */ color: oklch(30.6% 0.166 279.3);
Tailwind
colors: {
custom: {
50: '#7054a5',
500: '#27117f',
950: '#000000',
},
}SCSS
$custom: #27117f; $custom-light: #7054a5; $custom-dark: #000000;
JSON
{
"hex": "#27117f",
"rgb": {
"r": 39,
"g": 17,
"b": 127
},
"hsl": {
"h": 252,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.30618,
"c": 0.16619,
"h": 279.3
},
"luminance": 0.02365
}Semantic roles & 50–950 ramp
primary
#27117F
secondary
#9CB537
accent
#F335CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F