#1F3F7D#1F3F7D
#1F3F7D is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.0% C 0.112 H 262.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3F7D |
|---|---|
| RGB | rgb(31, 63, 125) |
| HSL | hsl(220, 60%, 31%) |
| HSV | hsv(220, 75%, 49%) |
| CMYK | cmyk(75.2%, 49.6%, 0%, 51%) |
| CIE-LAB | lab(27.64, 11.44, -38.64) |
| CIE-LCH | lch(27.64, 40.30, 286.48°) |
| OKLab | oklab(38.01% -0.0156 -0.1109) |
| OKLCH | oklch(38.01% 0.112 262) |
| XYZ | xyz(6.0429, 5.3263, 20.1077) |
| Luminance | 0.0533 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 2.86
Twilight Blue
#0A437A
ΔE00 3.58
Cobalt (survey)
#1E488F
ΔE00 3.61
Marine Blue
#01386A
ΔE00 4.22
Prussian Blue
#004577
ΔE00 5.24
Marine
#042E60
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3F7D #7D5D1F
analogous
#1F6E7D #1F3F7D #2E1F7D
triadic
#1F3F7D #7D1F3F #3F7D1F
tetradic
#1F3F7D #7D1F6E #7D5D1F #1F7D2E
square
#1F3F7D #7D1F6E #7D5D1F #1F7D2E
split-complementary
#1F3F7D #7D2E1F #6E7D1F
monochromatic
#070E1B #13264C #1F3F7D #2B58AE #4575D1
Accessibility & contrast
On white
10.17
#1F3F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#1F3F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3F7D
10.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3F7D | 1.00 | 10.17 | 2.07 | 10.17 |
| #FFFFFF | 10.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#033D7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #1f3f7d; /* rgb */ color: rgb(31, 63, 125); /* oklch */ color: oklch(38.0% 0.112 262.0);
Tailwind
colors: {
custom: {
50: '#6873a3',
500: '#1f3f7d',
950: '#000000',
},
}SCSS
$custom: #1f3f7d; $custom-light: #6873a3; $custom-dark: #000000;
JSON
{
"hex": "#1f3f7d",
"rgb": {
"r": 31,
"g": 63,
"b": 125
},
"hsl": {
"h": 219.574,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.38005,
"c": 0.11197,
"h": 262
},
"luminance": 0.05327
}Semantic roles & 50–950 ramp
primary
#1F3F7D
secondary
#B08D48
accent
#AD44E3
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F