#301F86#301F86
#301F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.160 H 281.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).
Color values
| HEX | #301F86 |
|---|---|
| RGB | rgb(48, 31, 134) |
| HSL | hsl(250, 62%, 32%) |
| HSV | hsv(250, 77%, 53%) |
| CMYK | cmyk(64.2%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.32, 38.36, -54.56) |
| CIE-LCH | lch(21.32, 66.69, 305.11°) |
| OKLab | oklab(33.86% 0.0308 -0.1574) |
| OKLCH | oklch(33.86% 0.16 281.1) |
| XYZ | xyz(6.0106, 3.3291, 22.8755) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.76
Midnight Blue
#191970
ΔE00 4.40
Indigo (survey)
#380282
ΔE00 4.84
Cobalt Blue
#030AA7
ΔE00 6.00
Darkblue
#00008B
ΔE00 6.04
Indigo Blue
#3A18B1
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F86 #75861F
analogous
#1F4286 #301F86 #641F86
triadic
#301F86 #86301F #1F8630
tetradic
#301F86 #861F42 #75861F #1F8664
square
#301F86 #861F42 #75861F #1F8664
split-complementary
#301F86 #86641F #42861F
monochromatic
#0C0823 #1E1454 #301F86 #422AB8 #614AD5
Accessibility & contrast
On white
12.61
#301F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#301F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F86
12.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F86 | 1.00 | 12.61 | 1.67 | 12.61 |
| #FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #301f86; /* rgb */ color: rgb(48, 31, 134); /* oklch */ color: oklch(33.9% 0.160 281.1);
Tailwind
colors: {
custom: {
50: '#745daa',
500: '#301f86',
950: '#000000',
},
}SCSS
$custom: #301f86; $custom-light: #745daa; $custom-dark: #000000;
JSON
{
"hex": "#301f86",
"rgb": {
"r": 48,
"g": 31,
"b": 134
},
"hsl": {
"h": 249.903,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33856,
"c": 0.16038,
"h": 281.1
},
"luminance": 0.0333
}Semantic roles & 50–950 ramp
primary
#301F86
secondary
#A5B849
accent
#E542CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F