#27157C#27157C
#27157C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.159 H 279.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).
Color values
| HEX | #27157C |
|---|---|
| RGB | rgb(39, 21, 124) |
| HSL | hsl(250, 71%, 28%) |
| HSV | hsv(250, 83%, 49%) |
| CMYK | cmyk(68.5%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(17.56, 39.39, -54.44) |
| CIE-LCH | lch(17.56, 67.20, 305.89°) |
| OKLab | oklab(30.7% 0.026 -0.1572) |
| OKLCH | oklch(30.7% 0.159 279.4) |
| XYZ | xyz(4.7418, 2.4225, 19.2826) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.00
Indigo (survey)
#380282
ΔE00 3.70
Royal
#0C1793
ΔE00 3.88
Dark Royal Blue
#02066F
ΔE00 4.23
Navy
#000080
ΔE00 4.24
Deep Blue
#040273
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#27157C #6A7C15
analogous
#15377C #27157C #5A157C
triadic
#27157C #7C2715 #157C27
tetradic
#27157C #7C1537 #6A7C15 #157C5A
square
#27157C #7C1537 #6A7C15 #157C5A
split-complementary
#27157C #7C5A15 #377C15
monochromatic
#08041A #170C48 #27157C #371EB0 #4E30DC
Accessibility & contrast
On white
14.15
#27157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#27157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #27157C
14.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##27157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##27157C | 1.00 | 14.15 | 1.48 | 14.15 |
| #FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #27157c; /* rgb */ color: rgb(39, 21, 124); /* oklch */ color: oklch(30.7% 0.159 279.4);
Tailwind
colors: {
custom: {
50: '#6f56a3',
500: '#27157c',
950: '#000000',
},
}SCSS
$custom: #27157c; $custom-light: #6f56a3; $custom-dark: #000000;
JSON
{
"hex": "#27157c",
"rgb": {
"r": 39,
"g": 21,
"b": 124
},
"hsl": {
"h": 250.485,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.30701,
"c": 0.15934,
"h": 279.4
},
"luminance": 0.02423
}Semantic roles & 50–950 ramp
primary
#27157C
secondary
#9DB13C
accent
#EE3ACE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F