#27158F#27158F
#27158F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.182 H 276.3°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).
Color values
| HEX | #27158F |
|---|---|
| RGB | rgb(39, 21, 143) |
| HSL | hsl(249, 74%, 32%) |
| HSV | hsv(249, 85%, 56%) |
| CMYK | cmyk(72.7%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(19.84, 45.26, -62.65) |
| CIE-LCH | lch(19.84, 77.29, 305.85°) |
| OKLab | oklab(32.94% 0.0199 -0.181) |
| OKLCH | oklch(32.94% 0.182 276.3) |
| XYZ | xyz(6.0612, 2.9503, 26.2313) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.01
Cobalt Blue
#030AA7
ΔE00 3.62
Darkblue
#00008B
ΔE00 3.81
Indigo (survey)
#380282
ΔE00 3.93
Royal Blue (survey)
#0504AA
ΔE00 4.06
Navy
#000080
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27158F #7D8F15
analogous
#15408F #27158F #64158F
triadic
#27158F #8F2715 #158F27
tetradic
#27158F #8F1540 #7D8F15 #158F64
square
#27158F #8F1540 #7D8F15 #158F64
split-complementary
#27158F #8F6415 #408F15
monochromatic
#0A0524 #180D5A #27158F #361DC4 #553CE2
Accessibility & contrast
On white
13.21
#27158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#27158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27158F
13.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27158F | 1.00 | 13.21 | 1.59 | 13.21 |
| #FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #27158f; /* rgb */ color: rgb(39, 21, 143); /* oklch */ color: oklch(32.9% 0.182 276.3);
Tailwind
colors: {
custom: {
50: '#7358b1',
500: '#27158f',
950: '#000000',
},
}SCSS
$custom: #27158f; $custom-light: #7358b1; $custom-dark: #000000;
JSON
{
"hex": "#27158f",
"rgb": {
"r": 39,
"g": 21,
"b": 143
},
"hsl": {
"h": 248.852,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.32938,
"c": 0.18213,
"h": 276.3
},
"luminance": 0.02951
}Semantic roles & 50–950 ramp
primary
#27158F
secondary
#AFC23E
accent
#F137D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880