#301B8E#301B8E
#301B8E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.174 H 280.3°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #301B8E |
|---|---|
| RGB | rgb(48, 27, 142) |
| HSL | hsl(251, 68%, 33%) |
| HSV | hsv(251, 81%, 56%) |
| CMYK | cmyk(66.2%, 81%, 0%, 44.3%) |
| CIE-LAB | lab(21.45, 42.97, -59.34) |
| CIE-LCH | lch(21.45, 73.26, 305.91°) |
| OKLab | oklab(34.21% 0.0311 -0.1713) |
| OKLCH | oklch(34.21% 0.174 280.3) |
| XYZ | xyz(6.4918, 3.3647, 25.8933) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.99
Indigo (survey)
#380282
ΔE00 4.25
Cobalt Blue
#030AA7
ΔE00 4.63
Indigo Blue
#3A18B1
ΔE00 5.02
Royal Blue (survey)
#0504AA
ΔE00 5.06
Darkblue
#00008B
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301B8E #798E1B
analogous
#1B3F8E #301B8E #6A1B8E
triadic
#301B8E #8E301B #1B8E30
tetradic
#301B8E #8E1B3F #798E1B #1B8E6A
square
#301B8E #8E1B3F #798E1B #1B8E6A
split-complementary
#301B8E #8E6A1B #3F8E1B
monochromatic
#0D0727 #1F115B #301B8E #4125C1 #6247DC
Accessibility & contrast
On white
12.55
#301B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#301B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301B8E
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301B8E | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #301b8e; /* rgb */ color: rgb(48, 27, 142); /* oklch */ color: oklch(34.2% 0.174 280.3);
Tailwind
colors: {
custom: {
50: '#765bb0',
500: '#301b8e',
950: '#000000',
},
}SCSS
$custom: #301b8e; $custom-light: #765bb0; $custom-dark: #000000;
JSON
{
"hex": "#301b8e",
"rgb": {
"r": 48,
"g": 27,
"b": 142
},
"hsl": {
"h": 250.957,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.34207,
"c": 0.17409,
"h": 280.3
},
"luminance": 0.03365
}Semantic roles & 50–950 ramp
primary
#301B8E
secondary
#A8BE47
accent
#EB3DCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980