#301F9F#301F9F
#301F9F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.191 H 277.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #301F9F |
|---|---|
| RGB | rgb(48, 31, 159) |
| HSL | hsl(248, 67%, 37%) |
| HSV | hsv(248, 81%, 62%) |
| CMYK | cmyk(69.8%, 80.5%, 0%, 37.6%) |
| CIE-LAB | lab(24.03, 46.24, -65.55) |
| CIE-LCH | lch(24.03, 80.21, 305.20°) |
| OKLab | oklab(36.57% 0.0241 -0.1894) |
| OKLCH | oklch(36.57% 0.191 277.2) |
| XYZ | xyz(7.9649, 4.1108, 33.1679) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.90
Royal
#0C1793
ΔE00 3.61
Cobalt Blue
#030AA7
ΔE00 3.96
Ultramarine
#2000B1
ΔE00 4.26
Royal Blue (survey)
#0504AA
ΔE00 4.35
True Blue
#010FCC
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F9F #8E9F1F
analogous
#1F4E9F #301F9F #701F9F
triadic
#301F9F #9F301F #1F9F30
tetradic
#301F9F #9F1F4E #8E9F1F #1F9F70
square
#301F9F #9F1F4E #8E9F1F #1F9F70
split-complementary
#301F9F #9F701F #4E9F1F
monochromatic
#110B39 #21156C #301F9F #3F29D2 #6B5ADF
Accessibility & contrast
On white
11.52
#301F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#301F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F9F
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F9F | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #301f9f; /* rgb */ color: rgb(48, 31, 159); /* oklch */ color: oklch(36.6% 0.191 277.2);
Tailwind
colors: {
custom: {
50: '#7a5fbd',
500: '#301f9f',
950: '#000000',
},
}SCSS
$custom: #301f9f; $custom-light: #7a5fbd; $custom-dark: #000000;
JSON
{
"hex": "#301f9f",
"rgb": {
"r": 48,
"g": 31,
"b": 159
},
"hsl": {
"h": 247.969,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.36566,
"c": 0.19092,
"h": 277.2
},
"luminance": 0.04112
}Semantic roles & 50–950 ramp
primary
#301F9F
secondary
#B4C357
accent
#EA3ED3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981