#1F388C#1F388C
#1F388C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.143 H 266.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1F388C |
|---|---|
| RGB | rgb(31, 56, 140) |
| HSL | hsl(226, 64%, 34%) |
| HSV | hsv(226, 78%, 55%) |
| CMYK | cmyk(77.9%, 60%, 0%, 45.1%) |
| CIE-LAB | lab(26.77, 22.31, -49.41) |
| CIE-LCH | lch(26.77, 54.21, 294.30°) |
| OKLab | oklab(37.71% -0.0083 -0.1427) |
| OKLCH | oklch(37.71% 0.143 266.7) |
| XYZ | xyz(6.7112, 5.0124, 25.4196) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.76
Cobalt (survey)
#1E488F
ΔE00 5.75
Darkish Blue
#014182
ΔE00 5.80
Blueberry
#464196
ΔE00 5.98
Cobalt
#0047AB
ΔE00 6.33
Darkslateblue
#483D8B
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F388C #8C731F
analogous
#1F6E8C #1F388C #3C1F8C
triadic
#1F388C #8C1F38 #388C1F
tetradic
#1F388C #8C1F6E #8C731F #1F8C3C
square
#1F388C #8C1F6E #8C731F #1F8C3C
split-complementary
#1F388C #8C3C1F #6E8C1F
monochromatic
#091028 #14245A #1F388C #2A4CBE #4E6DD8
Accessibility & contrast
On white
10.49
#1F388C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#1F388C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F388C
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F388C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F388C | 1.00 | 10.49 | 2.00 | 10.49 |
| #FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f388c; /* rgb */ color: rgb(31, 56, 140); /* oklch */ color: oklch(37.7% 0.143 266.7);
Tailwind
colors: {
custom: {
50: '#6c6eae',
500: '#1f388c',
950: '#000000',
},
}SCSS
$custom: #1f388c; $custom-light: #6c6eae; $custom-dark: #000000;
JSON
{
"hex": "#1f388c",
"rgb": {
"r": 31,
"g": 56,
"b": 140
},
"hsl": {
"h": 226.239,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.37707,
"c": 0.1429,
"h": 266.7
},
"luminance": 0.05013
}Semantic roles & 50–950 ramp
primary
#1F388C
secondary
#BBA14C
accent
#C141E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F