#27158C#27158C
#27158C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.179 H 276.7°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).
Color values
| HEX | #27158C |
|---|---|
| RGB | rgb(39, 21, 140) |
| HSL | hsl(249, 74%, 32%) |
| HSV | hsv(249, 85%, 55%) |
| CMYK | cmyk(72.1%, 85%, 0%, 45.1%) |
| CIE-LAB | lab(19.48, 44.35, -61.38) |
| CIE-LCH | lch(19.48, 75.73, 305.85°) |
| OKLab | oklab(32.58% 0.0209 -0.1774) |
| OKLCH | oklch(32.58% 0.179 276.7) |
| XYZ | xyz(5.8369, 2.8606, 25.0504) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.15
Darkblue
#00008B
ΔE00 3.75
Indigo (survey)
#380282
ΔE00 3.76
Cobalt Blue
#030AA7
ΔE00 3.99
Royal Blue (survey)
#0504AA
ΔE00 4.43
Navy
#000080
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27158C #7A8C15
analogous
#153F8C #27158C #63158C
triadic
#27158C #8C2715 #158C27
tetradic
#27158C #8C153F #7A8C15 #158C63
square
#27158C #8C153F #7A8C15 #158C63
split-complementary
#27158C #8C6315 #3F8C15
monochromatic
#090522 #180D57 #27158C #361DC1 #533AE1
Accessibility & contrast
On white
13.36
#27158C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#27158C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27158C
13.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27158C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27158C | 1.00 | 13.36 | 1.57 | 13.36 |
| #FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #27158c; /* rgb */ color: rgb(39, 21, 140); /* oklch */ color: oklch(32.6% 0.179 276.7);
Tailwind
colors: {
custom: {
50: '#7357af',
500: '#27158c',
950: '#000000',
},
}SCSS
$custom: #27158c; $custom-light: #7357af; $custom-dark: #000000;
JSON
{
"hex": "#27158c",
"rgb": {
"r": 39,
"g": 21,
"b": 140
},
"hsl": {
"h": 249.076,
"s": 73.913,
"l": 31.569
},
"oklch": {
"l": 0.3258,
"c": 0.17859,
"h": 276.7
},
"luminance": 0.02861
}Semantic roles & 50–950 ramp
primary
#27158C
secondary
#ACC03D
accent
#F137D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090311
muted
#7B7880