#30156E#30156E
#30156E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.141 H 288.7°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).
Color values
| HEX | #30156E |
|---|---|
| RGB | rgb(48, 21, 110) |
| HSL | hsl(258, 68%, 26%) |
| HSV | hsv(258, 81%, 43%) |
| CMYK | cmyk(56.4%, 80.9%, 0%, 56.9%) |
| CIE-LAB | lab(16.94, 36.18, -46.41) |
| CIE-LCH | lch(16.94, 58.85, 307.93°) |
| OKLab | oklab(30.03% 0.0451 -0.1335) |
| OKLCH | oklch(30.03% 0.141 288.7) |
| XYZ | xyz(4.3007, 2.2903, 14.9643) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.72
Indigo (survey)
#380282
ΔE00 4.38
Dark Indigo
#1F0954
ΔE00 4.97
Dark Royal Blue
#02066F
ΔE00 5.21
Darkblue (survey)
#030764
ΔE00 5.38
Deep Blue
#040273
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30156E #536E15
analogous
#15266E #30156E #5C156E
triadic
#30156E #6E3015 #156E30
tetradic
#30156E #6E1526 #536E15 #156E5C
square
#30156E #6E1526 #536E15 #156E5C
split-complementary
#30156E #6E5C15 #266E15
monochromatic
#0B051A #1A0B3B #30156E #461FA1 #5D29D5
Accessibility & contrast
On white
14.40
#30156E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#30156E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30156E
14.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30156E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30156E | 1.00 | 14.40 | 1.46 | 14.40 |
| #FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#172E41
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #30156e; /* rgb */ color: rgb(48, 21, 110); /* oklch */ color: oklch(30.0% 0.141 288.7);
Tailwind
colors: {
custom: {
50: '#705699',
500: '#30156e',
950: '#000000',
},
}SCSS
$custom: #30156e; $custom-light: #705699; $custom-dark: #000000;
JSON
{
"hex": "#30156e",
"rgb": {
"r": 48,
"g": 21,
"b": 110
},
"hsl": {
"h": 258.202,
"s": 67.939,
"l": 25.686
},
"oklch": {
"l": 0.3003,
"c": 0.14091,
"h": 288.7
},
"luminance": 0.0229
}Semantic roles & 50–950 ramp
primary
#30156E
secondary
#84A43A
accent
#EB3DB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E