#1F397C#1F397C
#1F397C is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.6% C 0.118 H 265.1°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).
Color values
| HEX | #1F397C |
|---|---|
| RGB | rgb(31, 57, 124) |
| HSL | hsl(223, 60%, 30%) |
| HSV | hsv(223, 75%, 49%) |
| CMYK | cmyk(75%, 54%, 0%, 51.4%) |
| CIE-LAB | lab(25.78, 15.22, -41.02) |
| CIE-LCH | lch(25.78, 43.76, 290.36°) |
| OKLab | oklab(36.56% -0.0102 -0.118) |
| OKLCH | oklch(36.56% 0.118 265.1) |
| XYZ | xyz(5.6650, 4.6722, 19.6681) |
| Luminance | 0.0467 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 4.62
Marine Blue
#01386A
ΔE00 4.76
Marine
#042E60
ΔE00 5.32
Cobalt (survey)
#1E488F
ΔE00 5.43
Twilight Blue
#0A437A
ΔE00 5.49
Prussian Blue
#004577
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F397C #7C621F
analogous
#1F677C #1F397C #341F7C
triadic
#1F397C #7C1F39 #397C1F
tetradic
#1F397C #7C1F67 #7C621F #1F7C34
square
#1F397C #7C1F67 #7C621F #1F7C34
split-complementary
#1F397C #7C341F #677C1F
monochromatic
#070C1A #13224B #1F397C #2B50AD #456CD0
Accessibility & contrast
On white
10.85
#1F397C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#1F397C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F397C
10.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F397C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F397C | 1.00 | 10.85 | 1.93 | 10.85 |
| #FFFFFF | 10.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D427E
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #1f397c; /* rgb */ color: rgb(31, 57, 124); /* oklch */ color: oklch(36.6% 0.118 265.1);
Tailwind
colors: {
custom: {
50: '#686ea2',
500: '#1f397c',
950: '#000000',
},
}SCSS
$custom: #1f397c; $custom-light: #686ea2; $custom-dark: #000000;
JSON
{
"hex": "#1f397c",
"rgb": {
"r": 31,
"g": 57,
"b": 124
},
"hsl": {
"h": 223.226,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.3656,
"c": 0.11843,
"h": 265.1
},
"luminance": 0.04673
}Semantic roles & 50–950 ramp
primary
#1F397C
secondary
#AF9248
accent
#B745E3
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F