#27159E#27159E
#27159E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.8% C 0.199 H 274.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #27159E |
|---|---|
| RGB | rgb(39, 21, 158) |
| HSL | hsl(248, 77%, 35%) |
| HSV | hsv(248, 87%, 62%) |
| CMYK | cmyk(75.3%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(21.71, 49.74, -68.81) |
| CIE-LCH | lch(21.71, 84.91, 305.86°) |
| OKLab | oklab(34.75% 0.0152 -0.1989) |
| OKLCH | oklch(34.75% 0.199 274.4) |
| XYZ | xyz(7.2744, 3.4355, 32.6209) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.28
Royal
#0C1793
ΔE00 2.57
Royal Blue (survey)
#0504AA
ΔE00 2.67
Ultramarine
#2000B1
ΔE00 2.97
Indigo Blue
#3A18B1
ΔE00 3.41
Darkblue
#00008B
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27159E #8C9E15
analogous
#15489E #27159E #6B159E
triadic
#27159E #9E2715 #159E27
tetradic
#27159E #9E1548 #8C9E15 #159E6B
square
#27159E #9E1548 #8C9E15 #159E6B
split-complementary
#27159E #9E6B15 #489E15
monochromatic
#0C0732 #1A0E68 #27159E #341CD4 #5C47E7
Accessibility & contrast
On white
12.45
#27159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#27159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27159E
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27159E | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #27159e; /* rgb */ color: rgb(39, 21, 158); /* oklch */ color: oklch(34.8% 0.199 274.4);
Tailwind
colors: {
custom: {
50: '#7759bc',
500: '#27159e',
950: '#000000',
},
}SCSS
$custom: #27159e; $custom-light: #7759bc; $custom-dark: #000000;
JSON
{
"hex": "#27159e",
"rgb": {
"r": 39,
"g": 21,
"b": 158
},
"hsl": {
"h": 247.883,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.34753,
"c": 0.19948,
"h": 274.4
},
"luminance": 0.03436
}Semantic roles & 50–950 ramp
primary
#27159E
secondary
#B7C747
accent
#F335DA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981