#27127E#27127E
#27127E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.164 H 279.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).
Color values
| HEX | #27127E |
|---|---|
| RGB | rgb(39, 18, 126) |
| HSL | hsl(252, 75%, 28%) |
| HSV | hsv(252, 86%, 49%) |
| CMYK | cmyk(69%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(17.32, 41.42, -56.12) |
| CIE-LCH | lch(17.32, 69.76, 306.43°) |
| OKLab | oklab(30.6% 0.0267 -0.162) |
| OKLCH | oklch(30.6% 0.164 279.4) |
| XYZ | xyz(4.8177, 2.3699, 19.9382) |
| Luminance | 0.0237 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.19
Midnight Blue
#191970
ΔE00 3.55
Royal
#0C1793
ΔE00 3.72
Navy
#000080
ΔE00 3.75
Darkblue
#00008B
ΔE00 3.87
Deep Blue
#040273
ΔE00 4.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27127E #697E12
analogous
#12337E #27127E #5D127E
triadic
#27127E #7E2712 #127E27
tetradic
#27127E #7E1233 #697E12 #127E5D
square
#27127E #7E1233 #697E12 #127E5D
split-complementary
#27127E #7E5D12 #337E12
monochromatic
#08041B #160A48 #27127E #381AB4 #4D2AE1
Accessibility & contrast
On white
14.25
#27127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#27127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27127E
14.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27127E | 1.00 | 14.25 | 1.47 | 14.25 |
| #FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #27127e; /* rgb */ color: rgb(39, 18, 126); /* oklch */ color: oklch(30.6% 0.164 279.4);
Tailwind
colors: {
custom: {
50: '#7055a5',
500: '#27127e',
950: '#000000',
},
}SCSS
$custom: #27127e; $custom-light: #7055a5; $custom-dark: #000000;
JSON
{
"hex": "#27127e",
"rgb": {
"r": 39,
"g": 18,
"b": 126
},
"hsl": {
"h": 251.667,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.30602,
"c": 0.16424,
"h": 279.4
},
"luminance": 0.0237
}Semantic roles & 50–950 ramp
primary
#27127E
secondary
#9CB438
accent
#F236CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F