#1F388E#1F388E
#1F388E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.146 H 266.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1F388E |
|---|---|
| RGB | rgb(31, 56, 142) |
| HSL | hsl(226, 64%, 34%) |
| HSV | hsv(226, 78%, 56%) |
| CMYK | cmyk(78.2%, 60.6%, 0%, 44.3%) |
| CIE-LAB | lab(26.94, 23.10, -50.37) |
| CIE-LCH | lch(26.94, 55.41, 294.63°) |
| OKLab | oklab(37.89% -0.0083 -0.1455) |
| OKLCH | oklch(37.89% 0.146 266.8) |
| XYZ | xyz(6.8600, 5.0719, 26.2034) |
| Luminance | 0.0507 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.44
Cobalt (survey)
#1E488F
ΔE00 5.82
Blueberry
#464196
ΔE00 5.87
Darkish Blue
#014182
ΔE00 5.96
Cobalt
#0047AB
ΔE00 6.20
Darkslateblue
#483D8B
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F388E #8E751F
analogous
#1F708E #1F388E #3D1F8E
triadic
#1F388E #8E1F38 #388E1F
tetradic
#1F388E #8E1F70 #8E751F #1F8E3D
square
#1F388E #8E1F70 #8E751F #1F8E3D
split-complementary
#1F388E #8E3D1F #708E1F
monochromatic
#09102A #14245C #1F388E #2A4CC0 #4F6ED9
Accessibility & contrast
On white
10.42
#1F388E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#1F388E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F388E
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F388E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F388E | 1.00 | 10.42 | 2.01 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f388e; /* rgb */ color: rgb(31, 56, 142); /* oklch */ color: oklch(37.9% 0.146 266.8);
Tailwind
colors: {
custom: {
50: '#6d6eb0',
500: '#1f388e',
950: '#000000',
},
}SCSS
$custom: #1f388e; $custom-light: #6d6eb0; $custom-dark: #000000;
JSON
{
"hex": "#1f388e",
"rgb": {
"r": 31,
"g": 56,
"b": 142
},
"hsl": {
"h": 226.486,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.37886,
"c": 0.14572,
"h": 266.8
},
"luminance": 0.05073
}Semantic roles & 50–950 ramp
primary
#1F388E
secondary
#BBA34D
accent
#C241E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F