#27147E#27147E
#27147E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.163 H 279.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).
Color values
| HEX | #27147E |
|---|---|
| RGB | rgb(39, 20, 126) |
| HSL | hsl(251, 73%, 29%) |
| HSV | hsv(251, 84%, 49%) |
| CMYK | cmyk(69%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(17.63, 40.50, -55.60) |
| CIE-LCH | lch(17.63, 68.79, 306.07°) |
| OKLab | oklab(30.82% 0.0258 -0.1606) |
| OKLCH | oklch(30.82% 0.163 279.1) |
| XYZ | xyz(4.8515, 2.4376, 19.9495) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.32
Indigo (survey)
#380282
ΔE00 3.47
Royal
#0C1793
ΔE00 3.63
Navy
#000080
ΔE00 4.03
Darkblue
#00008B
ΔE00 4.12
Deep Blue
#040273
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27147E #6B7E14
analogous
#14367E #27147E #5C147E
triadic
#27147E #7E2714 #147E27
tetradic
#27147E #7E1436 #6B7E14 #147E5C
square
#27147E #7E1436 #6B7E14 #147E5C
split-complementary
#27147E #7E5C14 #367E14
monochromatic
#08041A #170C49 #27147E #371CB3 #4E2EDE
Accessibility & contrast
On white
14.12
#27147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#27147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27147E
14.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27147E | 1.00 | 14.12 | 1.49 | 14.12 |
| #FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #27147e; /* rgb */ color: rgb(39, 20, 126); /* oklch */ color: oklch(30.8% 0.163 279.1);
Tailwind
colors: {
custom: {
50: '#6f56a5',
500: '#27147e',
950: '#000000',
},
}SCSS
$custom: #27147e; $custom-light: #6f56a5; $custom-dark: #000000;
JSON
{
"hex": "#27147e",
"rgb": {
"r": 39,
"g": 20,
"b": 126
},
"hsl": {
"h": 250.755,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.30818,
"c": 0.16263,
"h": 279.1
},
"luminance": 0.02438
}Semantic roles & 50–950 ramp
primary
#27147E
secondary
#9EB33A
accent
#EF38CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F