#30127E#30127E
#30127E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.163 H 284.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).
Color values
| HEX | #30127E |
|---|---|
| RGB | rgb(48, 18, 126) |
| HSL | hsl(257, 75%, 28%) |
| HSV | hsv(257, 86%, 49%) |
| CMYK | cmyk(61.9%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(18.22, 42.32, -54.61) |
| CIE-LCH | lch(18.22, 69.09, 307.77°) |
| OKLab | oklab(31.44% 0.0415 -0.1574) |
| OKLCH | oklch(31.44% 0.163 284.8) |
| XYZ | xyz(5.2000, 2.5670, 19.9561) |
| Luminance | 0.0257 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.40
Midnight Blue
#191970
ΔE00 4.32
Royal
#0C1793
ΔE00 4.48
Navy
#000080
ΔE00 4.60
Darkblue
#00008B
ΔE00 4.63
Indigo
#4B0082
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30127E #607E12
analogous
#122A7E #30127E #66127E
triadic
#30127E #7E3012 #127E30
tetradic
#30127E #7E122A #607E12 #127E66
square
#30127E #7E122A #607E12 #127E66
split-complementary
#30127E #7E6612 #2A7E12
monochromatic
#0A041B #1C0A48 #30127E #441AB4 #5D2AE1
Accessibility & contrast
On white
13.88
#30127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#30127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30127E
13.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30127E | 1.00 | 13.88 | 1.51 | 13.88 |
| #FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #30127e; /* rgb */ color: rgb(48, 18, 126); /* oklch */ color: oklch(31.4% 0.163 284.8);
Tailwind
colors: {
custom: {
50: '#7456a5',
500: '#30127e',
950: '#000000',
},
}SCSS
$custom: #30127e; $custom-light: #7456a5; $custom-dark: #000000;
JSON
{
"hex": "#30127e",
"rgb": {
"r": 48,
"g": 18,
"b": 126
},
"hsl": {
"h": 256.667,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.31439,
"c": 0.16276,
"h": 284.8
},
"luminance": 0.02567
}Semantic roles & 50–950 ramp
primary
#30127E
secondary
#91B438
accent
#F236BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F