#30157C#30157C
#30157C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.158 H 284.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #30157C |
|---|---|
| RGB | rgb(48, 21, 124) |
| HSL | hsl(256, 71%, 28%) |
| HSV | hsv(256, 83%, 49%) |
| CMYK | cmyk(61.3%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(18.45, 40.39, -52.95) |
| CIE-LCH | lch(18.45, 66.60, 307.34°) |
| OKLab | oklab(31.53% 0.0404 -0.1526) |
| OKLCH | oklch(31.53% 0.158 284.8) |
| XYZ | xyz(5.1241, 2.6196, 19.3005) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.98
Midnight Blue
#191970
ΔE00 3.90
Royal
#0C1793
ΔE00 4.63
Navy
#000080
ΔE00 5.00
Indigo
#4B0082
ΔE00 5.04
Deep Blue
#040273
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30157C #617C15
analogous
#152D7C #30157C #63157C
triadic
#30157C #7C3015 #157C30
tetradic
#30157C #7C152D #617C15 #157C63
square
#30157C #7C152D #617C15 #157C63
split-complementary
#30157C #7C6315 #2D7C15
monochromatic
#0A041A #1C0C48 #30157C #441EB0 #5D30DC
Accessibility & contrast
On white
13.78
#30157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#30157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30157C
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30157C | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#023449
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #30157c; /* rgb */ color: rgb(48, 21, 124); /* oklch */ color: oklch(31.5% 0.158 284.8);
Tailwind
colors: {
custom: {
50: '#7357a3',
500: '#30157c',
950: '#000000',
},
}SCSS
$custom: #30157c; $custom-light: #7357a3; $custom-dark: #000000;
JSON
{
"hex": "#30157c",
"rgb": {
"r": 48,
"g": 21,
"b": 124
},
"hsl": {
"h": 255.728,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.31532,
"c": 0.15786,
"h": 284.8
},
"luminance": 0.0262
}Semantic roles & 50–950 ramp
primary
#30157C
secondary
#92B13C
accent
#EE3ABF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F