#4F188C#4F188C
#4F188C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.174 H 298.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #4F188C |
|---|---|
| RGB | rgb(79, 24, 140) |
| HSL | hsl(268, 71%, 32%) |
| HSV | hsv(268, 83%, 55%) |
| CMYK | cmyk(43.6%, 82.9%, 0%, 45.1%) |
| CIE-LAB | lab(24.35, 47.76, -53.19) |
| CIE-LCH | lch(24.35, 71.49, 311.92°) |
| OKLab | oklab(36.98% 0.0833 -0.1523) |
| OKLCH | oklch(36.98% 0.174 298.7) |
| XYZ | xyz(8.2835, 4.2089, 25.1818) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.17
Indigo (survey)
#380282
ΔE00 4.76
Royal Purple (survey)
#4B006E
ΔE00 5.72
Indigo Blue
#3A18B1
ΔE00 6.27
Rebeccapurple
#663399
ΔE00 6.80
Ultramarine
#2000B1
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F188C #558C18
analogous
#181B8C #4F188C #89188C
triadic
#4F188C #8C4F18 #188C4F
tetradic
#4F188C #8C181B #558C18 #188C89
square
#4F188C #8C181B #558C18 #188C89
split-complementary
#4F188C #8C8918 #1B8C18
monochromatic
#140624 #320F58 #4F188C #6C21C0 #8B40DE
Accessibility & contrast
On white
11.40
#4F188C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#4F188C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F188C
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F188C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F188C | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#403953
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4f188c; /* rgb */ color: rgb(79, 24, 140); /* oklch */ color: oklch(37.0% 0.174 298.7);
Tailwind
colors: {
custom: {
50: '#875daf',
500: '#4f188c',
950: '#000000',
},
}SCSS
$custom: #4f188c; $custom-light: #875daf; $custom-dark: #000000;
JSON
{
"hex": "#4f188c",
"rgb": {
"r": 79,
"g": 24,
"b": 140
},
"hsl": {
"h": 268.448,
"s": 70.732,
"l": 32.157
},
"oklch": {
"l": 0.36979,
"c": 0.17356,
"h": 298.7
},
"luminance": 0.04209
}Semantic roles & 50–950 ramp
primary
#4F188C
secondary
#83BF41
accent
#ED3A99
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F