#27186F#27186F
#27186F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.140 H 281.5°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).
Color values
| HEX | #27186F |
|---|---|
| RGB | rgb(39, 24, 111) |
| HSL | hsl(250, 64%, 26%) |
| HSV | hsv(250, 78%, 44%) |
| CMYK | cmyk(64.9%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(16.66, 33.60, -47.56) |
| CIE-LCH | lch(16.66, 58.23, 305.24°) |
| OKLab | oklab(29.64% 0.0279 -0.1372) |
| OKLCH | oklch(29.64% 0.14 281.5) |
| XYZ | xyz(4.0317, 2.2320, 15.2542) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 1.96
Dark Royal Blue
#02066F
ΔE00 4.57
Darkblue (survey)
#030764
ΔE00 4.70
Deep Blue
#040273
ΔE00 5.06
Dark Indigo
#1F0954
ΔE00 5.19
Indigo (survey)
#380282
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27186F #606F18
analogous
#18356F #27186F #53186F
triadic
#27186F #6F2718 #186F27
tetradic
#27186F #6F1835 #606F18 #186F53
square
#27186F #6F1835 #606F18 #186F53
split-complementary
#27186F #6F5318 #356F18
monochromatic
#090519 #150D3D #27186F #3923A1 #4B2FD2
Accessibility & contrast
On white
14.52
#27186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#27186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27186F
14.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27186F | 1.00 | 14.52 | 1.45 | 14.52 |
| #FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #27186f; /* rgb */ color: rgb(39, 24, 111); /* oklch */ color: oklch(29.6% 0.140 281.5);
Tailwind
colors: {
custom: {
50: '#6c5799',
500: '#27186f',
950: '#000000',
},
}SCSS
$custom: #27186f; $custom-light: #6c5799; $custom-dark: #000000;
JSON
{
"hex": "#27186f",
"rgb": {
"r": 39,
"g": 24,
"b": 111
},
"hsl": {
"h": 250.345,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.29635,
"c": 0.14,
"h": 281.5
},
"luminance": 0.02232
}Semantic roles & 50–950 ramp
primary
#27186F
secondary
#93A53E
accent
#E740CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E