#301F8A#301F8A
#301F8A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.165 H 280.4°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).
Color values
| HEX | #301F8A |
|---|---|
| RGB | rgb(48, 31, 138) |
| HSL | hsl(250, 63%, 33%) |
| HSV | hsv(250, 78%, 54%) |
| CMYK | cmyk(65.2%, 77.5%, 0%, 45.9%) |
| CIE-LAB | lab(21.74, 39.64, -56.37) |
| CIE-LCH | lch(21.74, 68.91, 305.11°) |
| OKLab | oklab(34.28% 0.0298 -0.1627) |
| OKLCH | oklch(34.28% 0.165 280.4) |
| XYZ | xyz(6.2949, 3.4428, 24.3726) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.44
Midnight Blue
#191970
ΔE00 4.87
Indigo (survey)
#380282
ΔE00 4.89
Cobalt Blue
#030AA7
ΔE00 5.52
Indigo Blue
#3A18B1
ΔE00 5.72
Darkblue
#00008B
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F8A #798A1F
analogous
#1F438A #301F8A #651F8A
triadic
#301F8A #8A301F #1F8A30
tetradic
#301F8A #8A1F43 #798A1F #1F8A65
square
#301F8A #8A1F43 #798A1F #1F8A65
split-complementary
#301F8A #8A651F #438A1F
monochromatic
#0D0926 #1F1458 #301F8A #412ABC #624CD7
Accessibility & contrast
On white
12.44
#301F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#301F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F8A
12.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F8A | 1.00 | 12.44 | 1.69 | 12.44 |
| #FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #301f8a; /* rgb */ color: rgb(48, 31, 138); /* oklch */ color: oklch(34.3% 0.165 280.4);
Tailwind
colors: {
custom: {
50: '#755dad',
500: '#301f8a',
950: '#000000',
},
}SCSS
$custom: #301f8a; $custom-light: #755dad; $custom-dark: #000000;
JSON
{
"hex": "#301f8a",
"rgb": {
"r": 48,
"g": 31,
"b": 138
},
"hsl": {
"h": 249.533,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.34278,
"c": 0.16539,
"h": 280.4
},
"luminance": 0.03443
}Semantic roles & 50–950 ramp
primary
#301F8A
secondary
#A8BA4B
accent
#E641CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F