#301F8E#301F8E
#301F8E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.170 H 279.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #301F8E |
|---|---|
| RGB | rgb(48, 31, 142) |
| HSL | hsl(249, 64%, 34%) |
| HSV | hsv(249, 78%, 56%) |
| CMYK | cmyk(66.2%, 78.2%, 0%, 44.3%) |
| CIE-LAB | lab(22.16, 40.91, -58.16) |
| CIE-LCH | lch(22.16, 71.11, 305.12°) |
| OKLab | oklab(34.71% 0.0287 -0.1679) |
| OKLCH | oklch(34.71% 0.17 279.7) |
| XYZ | xyz(6.5898, 3.5608, 25.9260) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.23
Indigo (survey)
#380282
ΔE00 5.02
Cobalt Blue
#030AA7
ΔE00 5.09
Indigo Blue
#3A18B1
ΔE00 5.15
Midnight Blue
#191970
ΔE00 5.36
Royal Blue (survey)
#0504AA
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F8E #7D8E1F
analogous
#1F468E #301F8E #681F8E
triadic
#301F8E #8E301F #1F8E30
tetradic
#301F8E #8E1F46 #7D8E1F #1F8E68
square
#301F8E #8E1F46 #7D8E1F #1F8E68
split-complementary
#301F8E #8E681F #468E1F
monochromatic
#0E092A #1F145C #301F8E #412AC0 #644FD9
Accessibility & contrast
On white
12.26
#301F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#301F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F8E
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F8E | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #301f8e; /* rgb */ color: rgb(48, 31, 142); /* oklch */ color: oklch(34.7% 0.170 279.7);
Tailwind
colors: {
custom: {
50: '#765eb0',
500: '#301f8e',
950: '#000000',
},
}SCSS
$custom: #301f8e; $custom-light: #765eb0; $custom-dark: #000000;
JSON
{
"hex": "#301f8e",
"rgb": {
"r": 48,
"g": 31,
"b": 142
},
"hsl": {
"h": 249.189,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.34705,
"c": 0.17035,
"h": 279.7
},
"luminance": 0.03561
}Semantic roles & 50–950 ramp
primary
#301F8E
secondary
#ABBB4D
accent
#E741CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980