#1F378F#1F378F
#1F378F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.148 H 267.1°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1F378F |
|---|---|
| RGB | rgb(31, 55, 143) |
| HSL | hsl(227, 64%, 34%) |
| HSV | hsv(227, 78%, 56%) |
| CMYK | cmyk(78.3%, 61.5%, 0%, 43.9%) |
| CIE-LAB | lab(26.75, 24.18, -51.29) |
| CIE-LCH | lch(26.75, 56.71, 295.24°) |
| OKLab | oklab(37.77% -0.0075 -0.1482) |
| OKLCH | oklch(37.77% 0.148 267.1) |
| XYZ | xyz(6.8875, 5.0061, 26.5846) |
| Luminance | 0.0501 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.21
Blueberry
#464196
ΔE00 5.85
Cobalt (survey)
#1E488F
ΔE00 6.20
Darkish Blue
#014182
ΔE00 6.34
Cobalt
#0047AB
ΔE00 6.40
Darkslateblue
#483D8B
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F378F #8F771F
analogous
#1F6F8F #1F378F #3F1F8F
triadic
#1F378F #8F1F37 #378F1F
tetradic
#1F378F #8F1F6F #8F771F #1F8F3F
square
#1F378F #8F1F6F #8F771F #1F8F3F
split-complementary
#1F378F #8F3F1F #6F8F1F
monochromatic
#09102A #14245D #1F378F #2A4AC1 #4F6DD9
Accessibility & contrast
On white
10.49
#1F378F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#1F378F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F378F
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F378F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F378F | 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)
#004592
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f378f; /* rgb */ color: rgb(31, 55, 143); /* oklch */ color: oklch(37.8% 0.148 267.1);
Tailwind
colors: {
custom: {
50: '#6d6db1',
500: '#1f378f',
950: '#000000',
},
}SCSS
$custom: #1f378f; $custom-light: #6d6db1; $custom-dark: #000000;
JSON
{
"hex": "#1f378f",
"rgb": {
"r": 31,
"g": 55,
"b": 143
},
"hsl": {
"h": 227.143,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.37773,
"c": 0.1484,
"h": 267.1
},
"luminance": 0.05007
}Semantic roles & 50–950 ramp
primary
#1F378F
secondary
#BCA44E
accent
#C440E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80