#30186C#30186C
#30186C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.135 H 288.6°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).
Color values
| HEX | #30186C |
|---|---|
| RGB | rgb(48, 24, 108) |
| HSL | hsl(257, 64%, 26%) |
| HSV | hsv(257, 78%, 42%) |
| CMYK | cmyk(55.6%, 77.8%, 0%, 57.6%) |
| CIE-LAB | lab(17.29, 33.98, -44.54) |
| CIE-LCH | lch(17.29, 56.02, 307.35°) |
| OKLab | oklab(30.21% 0.0431 -0.128) |
| OKLCH | oklch(30.21% 0.135 288.6) |
| XYZ | xyz(4.2515, 2.3642, 14.4168) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.61
Dark Indigo
#1F0954
ΔE00 4.95
Indigo (survey)
#380282
ΔE00 5.15
Darkblue (survey)
#030764
ΔE00 5.69
Dark Royal Blue
#02066F
ΔE00 5.70
Deep Blue
#040273
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30186C #546C18
analogous
#182A6C #30186C #5A186C
triadic
#30186C #6C3018 #186C30
tetradic
#30186C #6C182A #546C18 #186C5A
square
#30186C #6C182A #546C18 #186C5A
split-complementary
#30186C #6C5A18 #2A6C18
monochromatic
#0B0619 #1A0D3A #30186C #46239E #5D2ED0
Accessibility & contrast
On white
14.26
#30186C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#30186C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30186C
14.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30186C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30186C | 1.00 | 14.26 | 1.47 | 14.26 |
| #FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#192F40
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #30186c; /* rgb */ color: rgb(48, 24, 108); /* oklch */ color: oklch(30.2% 0.135 288.6);
Tailwind
colors: {
custom: {
50: '#705897',
500: '#30186c',
950: '#000000',
},
}SCSS
$custom: #30186c; $custom-light: #705897; $custom-dark: #000000;
JSON
{
"hex": "#30186c",
"rgb": {
"r": 48,
"g": 24,
"b": 108
},
"hsl": {
"h": 257.143,
"s": 63.636,
"l": 25.882
},
"oklch": {
"l": 0.30214,
"c": 0.1351,
"h": 288.6
},
"luminance": 0.02364
}Semantic roles & 50–950 ramp
primary
#30186C
secondary
#85A23E
accent
#E741B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E