#1F308B#1F308B
#1F308B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.152 H 268.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).
Color values
| HEX | #1F308B |
|---|---|
| RGB | rgb(31, 48, 139) |
| HSL | hsl(231, 64%, 33%) |
| HSV | hsv(231, 78%, 55%) |
| CMYK | cmyk(77.7%, 65.5%, 0%, 45.5%) |
| CIE-LAB | lab(24.54, 27.40, -52.43) |
| CIE-LCH | lch(24.54, 59.16, 297.59°) |
| OKLab | oklab(36.03% -0.0028 -0.1516) |
| OKLCH | oklch(36.03% 0.152 268.9) |
| XYZ | xyz(6.2806, 4.2686, 24.9140) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.91
Blueberry
#464196
ΔE00 6.62
Darkslateblue
#483D8B
ΔE00 6.69
Royal
#0C1793
ΔE00 6.76
Midnight Blue
#191970
ΔE00 7.08
Marine
#042E60
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F308B #8B7A1F
analogous
#1F668B #1F308B #441F8B
triadic
#1F308B #8B1F30 #308B1F
tetradic
#1F308B #8B1F66 #8B7A1F #1F8B44
square
#1F308B #8B1F66 #8B7A1F #1F8B44
split-complementary
#1F308B #8B441F #668B1F
monochromatic
#090D27 #141F59 #1F308B #2A41BD #4D63D7
Accessibility & contrast
On white
11.33
#1F308B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#1F308B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F308B
11.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F308B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F308B | 1.00 | 11.33 | 1.85 | 11.33 |
| #FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f308b; /* rgb */ color: rgb(31, 48, 139); /* oklch */ color: oklch(36.0% 0.152 268.9);
Tailwind
colors: {
custom: {
50: '#6d68ae',
500: '#1f308b',
950: '#000000',
},
}SCSS
$custom: #1f308b; $custom-light: #6d68ae; $custom-dark: #000000;
JSON
{
"hex": "#1f308b",
"rgb": {
"r": 31,
"g": 48,
"b": 139
},
"hsl": {
"h": 230.556,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.36026,
"c": 0.15165,
"h": 268.9
},
"luminance": 0.04269
}Semantic roles & 50–950 ramp
primary
#1F308B
secondary
#BAA94C
accent
#CD41E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F