#1F378E#1F378E
#1F378E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.147 H 267.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F378E |
|---|---|
| RGB | rgb(31, 55, 142) |
| HSL | hsl(227, 64%, 34%) |
| HSV | hsv(227, 78%, 56%) |
| CMYK | cmyk(78.2%, 61.3%, 0%, 44.3%) |
| CIE-LAB | lab(26.67, 23.78, -50.82) |
| CIE-LCH | lch(26.67, 56.11, 295.08°) |
| OKLab | oklab(37.68% -0.0076 -0.1468) |
| OKLCH | oklch(37.68% 0.147 267.1) |
| XYZ | xyz(6.8120, 4.9759, 26.1874) |
| Luminance | 0.0498 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.37
Blueberry
#464196
ΔE00 5.89
Cobalt (survey)
#1E488F
ΔE00 6.16
Darkish Blue
#014182
ΔE00 6.26
Cobalt
#0047AB
ΔE00 6.46
Darkslateblue
#483D8B
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F378E #8E761F
analogous
#1F6F8E #1F378E #3F1F8E
triadic
#1F378E #8E1F37 #378E1F
tetradic
#1F378E #8E1F6F #8E761F #1F8E3F
square
#1F378E #8E1F6F #8E761F #1F8E3F
split-complementary
#1F378E #8E3F1F #6F8E1F
monochromatic
#09102A #14245C #1F378E #2A4AC0 #4F6DD9
Accessibility & contrast
On white
10.52
#1F378E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#1F378E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F378E
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F378E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F378E | 1.00 | 10.52 | 2.00 | 10.52 |
| #FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f378e; /* rgb */ color: rgb(31, 55, 142); /* oklch */ color: oklch(37.7% 0.147 267.1);
Tailwind
colors: {
custom: {
50: '#6d6db0',
500: '#1f378e',
950: '#000000',
},
}SCSS
$custom: #1f378e; $custom-light: #6d6db0; $custom-dark: #000000;
JSON
{
"hex": "#1f378e",
"rgb": {
"r": 31,
"g": 55,
"b": 142
},
"hsl": {
"h": 227.027,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.37683,
"c": 0.147,
"h": 267.1
},
"luminance": 0.04977
}Semantic roles & 50–950 ramp
primary
#1F378E
secondary
#BBA44D
accent
#C341E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80