#27127F#27127F
#27127F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.165 H 279.2°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).
Color values
| HEX | #27127F |
|---|---|
| RGB | rgb(39, 18, 127) |
| HSL | hsl(252, 75%, 28%) |
| HSV | hsv(252, 86%, 50%) |
| CMYK | cmyk(69.3%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(17.44, 41.73, -56.56) |
| CIE-LCH | lch(17.44, 70.29, 306.42°) |
| OKLab | oklab(30.72% 0.0264 -0.1633) |
| OKLCH | oklch(30.72% 0.165 279.2) |
| XYZ | xyz(4.8825, 2.3958, 20.2797) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.16
Royal
#0C1793
ΔE00 3.59
Midnight Blue
#191970
ΔE00 3.65
Navy
#000080
ΔE00 3.74
Darkblue
#00008B
ΔE00 3.79
Deep Blue
#040273
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27127F #6A7F12
analogous
#12337F #27127F #5D127F
triadic
#27127F #7F2712 #127F27
tetradic
#27127F #7F1233 #6A7F12 #127F5D
square
#27127F #7F1233 #6A7F12 #127F5D
split-complementary
#27127F #7F5D12 #337F12
monochromatic
#08041B #170A49 #27127F #371AB5 #4E2BE1
Accessibility & contrast
On white
14.20
#27127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#27127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27127F
14.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27127F | 1.00 | 14.20 | 1.48 | 14.20 |
| #FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #27127f; /* rgb */ color: rgb(39, 18, 127); /* oklch */ color: oklch(30.7% 0.165 279.2);
Tailwind
colors: {
custom: {
50: '#7055a5',
500: '#27127f',
950: '#000000',
},
}SCSS
$custom: #27127f; $custom-light: #7055a5; $custom-dark: #000000;
JSON
{
"hex": "#27127f",
"rgb": {
"r": 39,
"g": 18,
"b": 127
},
"hsl": {
"h": 251.56,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.3072,
"c": 0.16544,
"h": 279.2
},
"luminance": 0.02396
}Semantic roles & 50–950 ramp
primary
#27127F
secondary
#9DB538
accent
#F236CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F