#27157E#27157E
#27157E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.162 H 279.0°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).
Color values
| HEX | #27157E |
|---|---|
| RGB | rgb(39, 21, 126) |
| HSL | hsl(250, 71%, 29%) |
| HSV | hsv(250, 83%, 49%) |
| CMYK | cmyk(69%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(17.80, 40.02, -55.33) |
| CIE-LCH | lch(17.80, 68.29, 305.88°) |
| OKLab | oklab(30.93% 0.0253 -0.1598) |
| OKLCH | oklch(30.93% 0.162 279) |
| XYZ | xyz(4.8696, 2.4736, 19.9555) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.21
Royal
#0C1793
ΔE00 3.60
Indigo (survey)
#380282
ΔE00 3.62
Navy
#000080
ΔE00 4.18
Darkblue
#00008B
ΔE00 4.25
Dark Royal Blue
#02066F
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27157E #6C7E15
analogous
#15387E #27157E #5C157E
triadic
#27157E #7E2715 #157E27
tetradic
#27157E #7E1538 #6C7E15 #157E5C
square
#27157E #7E1538 #6C7E15 #157E5C
split-complementary
#27157E #7E5C15 #387E15
monochromatic
#08041A #170C4A #27157E #371EB2 #4E31DD
Accessibility & contrast
On white
14.05
#27157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#27157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27157E
14.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27157E | 1.00 | 14.05 | 1.49 | 14.05 |
| #FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #27157e; /* rgb */ color: rgb(39, 21, 126); /* oklch */ color: oklch(30.9% 0.162 279.0);
Tailwind
colors: {
custom: {
50: '#6f56a5',
500: '#27157e',
950: '#000000',
},
}SCSS
$custom: #27157e; $custom-light: #6f56a5; $custom-dark: #000000;
JSON
{
"hex": "#27157e",
"rgb": {
"r": 39,
"g": 21,
"b": 126
},
"hsl": {
"h": 250.286,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.30932,
"c": 0.16178,
"h": 279
},
"luminance": 0.02474
}Semantic roles & 50–950 ramp
primary
#27157E
secondary
#9FB33C
accent
#EE3ACF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F