#1F398D#1F398D
#1F398D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.143 H 266.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).
Color values
| HEX | #1F398D |
|---|---|
| RGB | rgb(31, 57, 141) |
| HSL | hsl(226, 64%, 34%) |
| HSV | hsv(226, 78%, 55%) |
| CMYK | cmyk(78%, 59.6%, 0%, 44.7%) |
| CIE-LAB | lab(27.13, 22.01, -49.44) |
| CIE-LCH | lch(27.13, 54.12, 294.00°) |
| OKLab | oklab(38% -0.009 -0.1427) |
| OKLCH | oklch(38% 0.143 266.4) |
| XYZ | xyz(6.8342, 5.1399, 25.8261) |
| Luminance | 0.0514 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.70
Cobalt (survey)
#1E488F
ΔE00 5.44
Darkish Blue
#014182
ΔE00 5.58
Blueberry
#464196
ΔE00 5.93
Cobalt
#0047AB
ΔE00 6.01
Darkslateblue
#483D8B
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F398D #8D731F
analogous
#1F708D #1F398D #3C1F8D
triadic
#1F398D #8D1F39 #398D1F
tetradic
#1F398D #8D1F70 #8D731F #1F8D3C
square
#1F398D #8D1F70 #8D731F #1F8D3C
split-complementary
#1F398D #8D3C1F #708D1F
monochromatic
#091029 #14255B #1F398D #2A4DBF #4E6FD8
Accessibility & contrast
On white
10.35
#1F398D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#1F398D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F398D
10.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F398D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F398D | 1.00 | 10.35 | 2.03 | 10.35 |
| #FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #1f398d; /* rgb */ color: rgb(31, 57, 141); /* oklch */ color: oklch(38.0% 0.143 266.4);
Tailwind
colors: {
custom: {
50: '#6d6faf',
500: '#1f398d',
950: '#000000',
},
}SCSS
$custom: #1f398d; $custom-light: #6d6faf; $custom-dark: #000000;
JSON
{
"hex": "#1f398d",
"rgb": {
"r": 31,
"g": 57,
"b": 141
},
"hsl": {
"h": 225.818,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.38002,
"c": 0.14302,
"h": 266.4
},
"luminance": 0.05141
}Semantic roles & 50–950 ramp
primary
#1F398D
secondary
#BBA14D
accent
#C041E7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F