#1F308A#1F308A
#1F308A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.150 H 268.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1F308A |
|---|---|
| RGB | rgb(31, 48, 138) |
| HSL | hsl(230, 63%, 33%) |
| HSV | hsv(230, 78%, 54%) |
| CMYK | cmyk(77.5%, 65.2%, 0%, 45.9%) |
| CIE-LAB | lab(24.45, 27.02, -51.96) |
| CIE-LCH | lch(24.45, 58.56, 297.47°) |
| OKLab | oklab(35.93% -0.0028 -0.1502) |
| OKLCH | oklch(35.93% 0.15 268.9) |
| XYZ | xyz(6.2079, 4.2395, 24.5310) |
| Luminance | 0.0424 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.05
Blueberry
#464196
ΔE00 6.66
Darkslateblue
#483D8B
ΔE00 6.70
Royal
#0C1793
ΔE00 6.83
Midnight Blue
#191970
ΔE00 7.03
Marine
#042E60
ΔE00 7.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F308A #8A791F
analogous
#1F658A #1F308A #431F8A
triadic
#1F308A #8A1F30 #308A1F
tetradic
#1F308A #8A1F65 #8A791F #1F8A43
square
#1F308A #8A1F65 #8A791F #1F8A43
split-complementary
#1F308A #8A431F #658A1F
monochromatic
#090D26 #141F58 #1F308A #2A41BC #4C62D7
Accessibility & contrast
On white
11.36
#1F308A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#1F308A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F308A
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F308A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F308A | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f308a; /* rgb */ color: rgb(31, 48, 138); /* oklch */ color: oklch(35.9% 0.150 268.9);
Tailwind
colors: {
custom: {
50: '#6d68ad',
500: '#1f308a',
950: '#000000',
},
}SCSS
$custom: #1f308a; $custom-light: #6d68ad; $custom-dark: #000000;
JSON
{
"hex": "#1f308a",
"rgb": {
"r": 31,
"g": 48,
"b": 138
},
"hsl": {
"h": 230.467,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.3593,
"c": 0.15027,
"h": 268.9
},
"luminance": 0.0424
}Semantic roles & 50–950 ramp
primary
#1F308A
secondary
#BAA84B
accent
#CC41E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F