#27156C#27156C
#27156C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.139 H 282.8°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).
Color values
| HEX | #27156C |
|---|---|
| RGB | rgb(39, 21, 108) |
| HSL | hsl(252, 67%, 25%) |
| HSV | hsv(252, 81%, 42%) |
| CMYK | cmyk(63.9%, 80.6%, 0%, 57.6%) |
| CIE-LAB | lab(15.75, 34.29, -47.11) |
| CIE-LCH | lch(15.75, 58.27, 306.05°) |
| OKLab | oklab(28.9% 0.0309 -0.1358) |
| OKLCH | oklch(28.9% 0.139 282.8) |
| XYZ | xyz(3.8108, 2.0501, 14.3793) |
| Luminance | 0.0205 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.43
Dark Royal Blue
#02066F
ΔE00 4.24
Darkblue (survey)
#030764
ΔE00 4.25
Dark Indigo
#1F0954
ΔE00 4.47
Deep Blue
#040273
ΔE00 4.72
Indigo (survey)
#380282
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27156C #5A6C15
analogous
#152E6C #27156C #52156C
triadic
#27156C #6C2715 #156C27
tetradic
#27156C #6C152E #5A6C15 #156C52
square
#27156C #6C152E #5A6C15 #156C52
split-complementary
#27156C #6C5215 #2E6C15
monochromatic
#09051A #140B39 #27156C #3A1F9F #4C29D2
Accessibility & contrast
On white
14.89
#27156C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#27156C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27156C
14.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27156C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27156C | 1.00 | 14.89 | 1.41 | 14.89 |
| #FFFFFF | 14.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #27156c; /* rgb */ color: rgb(39, 21, 108); /* oklch */ color: oklch(28.9% 0.139 282.8);
Tailwind
colors: {
custom: {
50: '#6b5597',
500: '#27156c',
950: '#000000',
},
}SCSS
$custom: #27156c; $custom-light: #6b5597; $custom-dark: #000000;
JSON
{
"hex": "#27156c",
"rgb": {
"r": 39,
"g": 21,
"b": 108
},
"hsl": {
"h": 252.414,
"s": 67.442,
"l": 25.294
},
"oklch": {
"l": 0.28896,
"c": 0.13931,
"h": 282.8
},
"luminance": 0.0205
}Semantic roles & 50–950 ramp
primary
#27156C
secondary
#8DA33A
accent
#EA3DC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E