#30159F#30159F
#30159F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.198 H 278.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #30159F |
|---|---|
| RGB | rgb(48, 21, 159) |
| HSL | hsl(252, 77%, 35%) |
| HSV | hsv(252, 87%, 62%) |
| CMYK | cmyk(69.8%, 86.8%, 0%, 37.6%) |
| CIE-LAB | lab(22.54, 50.63, -68.02) |
| CIE-LCH | lch(22.54, 84.80, 306.66°) |
| OKLab | oklab(35.54% 0.0281 -0.1964) |
| OKLCH | oklch(35.54% 0.198 278.1) |
| XYZ | xyz(7.7431, 3.6672, 33.0940) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.82
Cobalt Blue
#030AA7
ΔE00 2.90
Ultramarine
#2000B1
ΔE00 3.00
Royal Blue (survey)
#0504AA
ΔE00 3.14
Royal
#0C1793
ΔE00 3.39
Indigo (survey)
#380282
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30159F #849F15
analogous
#153F9F #30159F #75159F
triadic
#30159F #9F3015 #159F30
tetradic
#30159F #9F153F #849F15 #159F75
square
#30159F #9F153F #849F15 #159F75
split-complementary
#30159F #9F7515 #3F9F15
monochromatic
#0F0733 #200E69 #30159F #401CD5 #6748E7
Accessibility & contrast
On white
12.11
#30159F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#30159F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30159F
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30159F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30159F | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #30159f; /* rgb */ color: rgb(48, 21, 159); /* oklch */ color: oklch(35.5% 0.198 278.1);
Tailwind
colors: {
custom: {
50: '#7a5abd',
500: '#30159f',
950: '#000000',
},
}SCSS
$custom: #30159f; $custom-light: #7a5abd; $custom-dark: #000000;
JSON
{
"hex": "#30159f",
"rgb": {
"r": 48,
"g": 21,
"b": 159
},
"hsl": {
"h": 251.739,
"s": 76.667,
"l": 35.294
},
"oklch": {
"l": 0.35536,
"c": 0.19843,
"h": 278.1
},
"luminance": 0.03668
}Semantic roles & 50–950 ramp
primary
#30159F
secondary
#AFC848
accent
#F335CE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981