#301F8F#301F8F
#301F8F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.172 H 279.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).
Color values
| HEX | #301F8F |
|---|---|
| RGB | rgb(48, 31, 143) |
| HSL | hsl(249, 64%, 34%) |
| HSV | hsv(249, 78%, 56%) |
| CMYK | cmyk(66.4%, 78.3%, 0%, 43.9%) |
| CIE-LAB | lab(22.27, 41.23, -58.61) |
| CIE-LCH | lch(22.27, 71.66, 305.13°) |
| OKLab | oklab(34.81% 0.0285 -0.1692) |
| OKLCH | oklch(34.81% 0.172 279.5) |
| XYZ | xyz(6.6653, 3.5910, 26.3232) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.19
Cobalt Blue
#030AA7
ΔE00 4.99
Indigo Blue
#3A18B1
ΔE00 5.00
Indigo (survey)
#380282
ΔE00 5.06
Royal Blue (survey)
#0504AA
ΔE00 5.46
Midnight Blue
#191970
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F8F #7E8F1F
analogous
#1F468F #301F8F #681F8F
triadic
#301F8F #8F301F #1F8F30
tetradic
#301F8F #8F1F46 #7E8F1F #1F8F68
square
#301F8F #8F1F46 #7E8F1F #1F8F68
split-complementary
#301F8F #8F681F #468F1F
monochromatic
#0E092A #1F145D #301F8F #412AC1 #644FD9
Accessibility & contrast
On white
12.22
#301F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#301F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F8F
12.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F8F | 1.00 | 12.22 | 1.72 | 12.22 |
| #FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #301f8f; /* rgb */ color: rgb(48, 31, 143); /* oklch */ color: oklch(34.8% 0.172 279.5);
Tailwind
colors: {
custom: {
50: '#765eb1',
500: '#301f8f',
950: '#000000',
},
}SCSS
$custom: #301f8f; $custom-light: #765eb1; $custom-dark: #000000;
JSON
{
"hex": "#301f8f",
"rgb": {
"r": 48,
"g": 31,
"b": 143
},
"hsl": {
"h": 249.107,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.34813,
"c": 0.17159,
"h": 279.5
},
"luminance": 0.03592
}Semantic roles & 50–950 ramp
primary
#301F8F
secondary
#ABBC4E
accent
#E740CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980