#1F438D#1F438D
#1F438D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.130 H 262.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).
Color values
| HEX | #1F438D |
|---|---|
| RGB | rgb(31, 67, 141) |
| HSL | hsl(220, 64%, 34%) |
| HSV | hsv(220, 78%, 55%) |
| CMYK | cmyk(78%, 52.5%, 0%, 44.7%) |
| CIE-LAB | lab(29.98, 15.10, -44.82) |
| CIE-LCH | lch(29.98, 47.29, 288.62°) |
| OKLab | oklab(40.16% -0.0168 -0.129) |
| OKLCH | oklch(40.16% 0.13 262.6) |
| XYZ | xyz(7.3782, 6.2279, 26.0074) |
| Luminance | 0.0623 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 1.84
Darkish Blue
#014182
ΔE00 3.16
Cobalt
#0047AB
ΔE00 4.13
Twilight Blue
#0A437A
ΔE00 4.15
Prussian Blue
#004577
ΔE00 5.59
Dusk Blue
#26538D
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F438D #8D691F
analogous
#1F7A8D #1F438D #321F8D
triadic
#1F438D #8D1F43 #438D1F
tetradic
#1F438D #8D1F7A #8D691F #1F8D32
square
#1F438D #8D1F7A #8D691F #1F8D32
split-complementary
#1F438D #8D321F #7A8D1F
monochromatic
#091329 #142B5B #1F438D #2A5BBF #4E7BD8
Accessibility & contrast
On white
9.35
#1F438D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#1F438D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F438D
9.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F438D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F438D | 1.00 | 9.35 | 2.25 | 9.35 |
| #FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#134C90
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #1f438d; /* rgb */ color: rgb(31, 67, 141); /* oklch */ color: oklch(40.2% 0.130 262.6);
Tailwind
colors: {
custom: {
50: '#6c76af',
500: '#1f438d',
950: '#000000',
},
}SCSS
$custom: #1f438d; $custom-light: #6c76af; $custom-dark: #000000;
JSON
{
"hex": "#1f438d",
"rgb": {
"r": 31,
"g": 67,
"b": 141
},
"hsl": {
"h": 220.364,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.40156,
"c": 0.13005,
"h": 262.6
},
"luminance": 0.06229
}Semantic roles & 50–950 ramp
primary
#1F438D
secondary
#BB974D
accent
#B141E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F