#301B88#301B88
#301B88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.167 H 281.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #301B88 |
|---|---|
| RGB | rgb(48, 27, 136) |
| HSL | hsl(252, 67%, 32%) |
| HSV | hsv(252, 80%, 53%) |
| CMYK | cmyk(64.7%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(20.79, 41.11, -56.69) |
| CIE-LCH | lch(20.79, 70.02, 305.95°) |
| OKLab | oklab(33.55% 0.0329 -0.1636) |
| OKLCH | oklch(33.55% 0.167 281.4) |
| XYZ | xyz(6.0534, 3.1894, 23.5844) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.35
Indigo (survey)
#380282
ΔE00 4.01
Midnight Blue
#191970
ΔE00 4.67
Darkblue
#00008B
ΔE00 5.27
Cobalt Blue
#030AA7
ΔE00 5.32
Navy
#000080
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301B88 #73881B
analogous
#1B3C88 #301B88 #671B88
triadic
#301B88 #88301B #1B8830
tetradic
#301B88 #881B3C #73881B #1B8867
square
#301B88 #881B3C #73881B #1B8867
split-complementary
#301B88 #88671B #3C881B
monochromatic
#0C0722 #1E1155 #301B88 #4225BB #6144DA
Accessibility & contrast
On white
12.82
#301B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#301B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301B88
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301B88 | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #301b88; /* rgb */ color: rgb(48, 27, 136); /* oklch */ color: oklch(33.5% 0.167 281.4);
Tailwind
colors: {
custom: {
50: '#755bac',
500: '#301b88',
950: '#000000',
},
}SCSS
$custom: #301b88; $custom-light: #755bac; $custom-dark: #000000;
JSON
{
"hex": "#301b88",
"rgb": {
"r": 48,
"g": 27,
"b": 136
},
"hsl": {
"h": 251.56,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.33549,
"c": 0.16683,
"h": 281.4
},
"luminance": 0.0319
}Semantic roles & 50–950 ramp
primary
#301B88
secondary
#A4BB44
accent
#EA3EC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F