#27156F#27156F
#27156F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.143 H 282.1°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).
Color values
| HEX | #27156F |
|---|---|
| RGB | rgb(39, 21, 111) |
| HSL | hsl(252, 68%, 26%) |
| HSV | hsv(252, 81%, 44%) |
| CMYK | cmyk(64.9%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(16.08, 35.25, -48.52) |
| CIE-LCH | lch(16.08, 59.97, 306.00°) |
| OKLab | oklab(29.23% 0.03 -0.1399) |
| OKLCH | oklch(29.23% 0.143 282.1) |
| XYZ | xyz(3.9732, 2.1151, 15.2347) |
| Luminance | 0.0211 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.32
Dark Royal Blue
#02066F
ΔE00 4.09
Darkblue (survey)
#030764
ΔE00 4.31
Deep Blue
#040273
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 4.79
Dark Indigo
#1F0954
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27156F #5D6F15
analogous
#15306F #27156F #54156F
triadic
#27156F #6F2715 #156F27
tetradic
#27156F #6F1530 #5D6F15 #156F54
square
#27156F #6F1530 #5D6F15 #156F54
split-complementary
#27156F #6F5415 #306F15
monochromatic
#09051A #150B3C #27156F #391FA2 #4B28D6
Accessibility & contrast
On white
14.76
#27156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#27156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27156F
14.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27156F | 1.00 | 14.76 | 1.42 | 14.76 |
| #FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #27156f; /* rgb */ color: rgb(39, 21, 111); /* oklch */ color: oklch(29.2% 0.143 282.1);
Tailwind
colors: {
custom: {
50: '#6c5599',
500: '#27156f',
950: '#000000',
},
}SCSS
$custom: #27156f; $custom-light: #6c5599; $custom-dark: #000000;
JSON
{
"hex": "#27156f",
"rgb": {
"r": 39,
"g": 21,
"b": 111
},
"hsl": {
"h": 252,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.29228,
"c": 0.14313,
"h": 282.1
},
"luminance": 0.02115
}Semantic roles & 50–950 ramp
primary
#27156F
secondary
#90A53A
accent
#EB3DC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E