#301F9B#301F9B
#301F9B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.186 H 277.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).
Color values
| HEX | #301F9B |
|---|---|
| RGB | rgb(48, 31, 155) |
| HSL | hsl(248, 67%, 36%) |
| HSV | hsv(248, 80%, 61%) |
| CMYK | cmyk(69%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(23.59, 45.00, -63.84) |
| CIE-LCH | lch(23.59, 78.11, 305.18°) |
| OKLab | oklab(36.12% 0.0252 -0.1844) |
| OKLCH | oklch(36.12% 0.186 277.8) |
| XYZ | xyz(7.6234, 3.9742, 31.3693) |
| Luminance | 0.0398 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.35
Indigo Blue
#3A18B1
ΔE00 3.39
Cobalt Blue
#030AA7
ΔE00 4.10
Royal Blue (survey)
#0504AA
ΔE00 4.53
Ultramarine
#2000B1
ΔE00 4.56
Indigo (survey)
#380282
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#301F9B #8A9B1F
analogous
#1F4C9B #301F9B #6E1F9B
triadic
#301F9B #9B301F #1F9B30
tetradic
#301F9B #9B1F4C #8A9B1F #1F9B6E
square
#301F9B #9B1F4C #8A9B1F #1F9B6E
split-complementary
#301F9B #9B6E1F #4C9B1F
monochromatic
#100B35 #201568 #301F9B #4029CE #6957DD
Accessibility & contrast
On white
11.70
#301F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#301F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #301F9B
11.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##301F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##301F9B | 1.00 | 11.70 | 1.80 | 11.70 |
| #FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #301f9b; /* rgb */ color: rgb(48, 31, 155); /* oklch */ color: oklch(36.1% 0.186 277.8);
Tailwind
colors: {
custom: {
50: '#795eba',
500: '#301f9b',
950: '#000000',
},
}SCSS
$custom: #301f9b; $custom-light: #795eba; $custom-dark: #000000;
JSON
{
"hex": "#301f9b",
"rgb": {
"r": 48,
"g": 31,
"b": 155
},
"hsl": {
"h": 248.226,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.36122,
"c": 0.18616,
"h": 277.8
},
"luminance": 0.03975
}Semantic roles & 50–950 ramp
primary
#301F9B
secondary
#B2C155
accent
#EA3ED2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981