#30166F#30166F
#30166F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.141 H 288.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).
Color values
| HEX | #30166F |
|---|---|
| RGB | rgb(48, 22, 111) |
| HSL | hsl(258, 67%, 26%) |
| HSV | hsv(258, 80%, 44%) |
| CMYK | cmyk(56.8%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(17.22, 35.97, -46.60) |
| CIE-LCH | lch(17.22, 58.87, 307.66°) |
| OKLab | oklab(30.26% 0.044 -0.134) |
| OKLCH | oklch(30.26% 0.141 288.2) |
| XYZ | xyz(4.3742, 2.3497, 15.2589) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.59
Indigo (survey)
#380282
ΔE00 4.40
Dark Indigo
#1F0954
ΔE00 5.16
Dark Royal Blue
#02066F
ΔE00 5.27
Darkblue (survey)
#030764
ΔE00 5.46
Deep Blue
#040273
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30166F #556F16
analogous
#16286F #30166F #5C166F
triadic
#30166F #6F3016 #166F30
tetradic
#30166F #6F1628 #556F16 #166F5C
square
#30166F #6F1628 #556F16 #166F5C
split-complementary
#30166F #6F5C16 #286F16
monochromatic
#0B051A #1A0C3C #30166F #4620A2 #5C2BD5
Accessibility & contrast
On white
14.29
#30166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#30166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30166F
14.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30166F | 1.00 | 14.29 | 1.47 | 14.29 |
| #FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#162F42
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #30166f; /* rgb */ color: rgb(48, 22, 111); /* oklch */ color: oklch(30.3% 0.141 288.2);
Tailwind
colors: {
custom: {
50: '#705799',
500: '#30166f',
950: '#000000',
},
}SCSS
$custom: #30166f; $custom-light: #705799; $custom-dark: #000000;
JSON
{
"hex": "#30166f",
"rgb": {
"r": 48,
"g": 22,
"b": 111
},
"hsl": {
"h": 257.528,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.30259,
"c": 0.14108,
"h": 288.2
},
"luminance": 0.0235
}Semantic roles & 50–950 ramp
primary
#30166F
secondary
#86A53C
accent
#EA3EB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E