#1F378D#1F378D
#1F378D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.146 H 267.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).
Color values
| HEX | #1F378D |
|---|---|
| RGB | rgb(31, 55, 141) |
| HSL | hsl(227, 64%, 34%) |
| HSV | hsv(227, 78%, 55%) |
| CMYK | cmyk(78%, 61%, 0%, 44.7%) |
| CIE-LAB | lab(26.58, 23.39, -50.34) |
| CIE-LCH | lch(26.58, 55.51, 294.92°) |
| OKLab | oklab(37.59% -0.0076 -0.1454) |
| OKLCH | oklch(37.59% 0.146 267) |
| XYZ | xyz(6.7373, 4.9460, 25.7937) |
| Luminance | 0.0495 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.53
Blueberry
#464196
ΔE00 5.94
Cobalt (survey)
#1E488F
ΔE00 6.13
Darkish Blue
#014182
ΔE00 6.19
Cobalt
#0047AB
ΔE00 6.52
Darkslateblue
#483D8B
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F378D #8D751F
analogous
#1F6E8D #1F378D #3E1F8D
triadic
#1F378D #8D1F37 #378D1F
tetradic
#1F378D #8D1F6E #8D751F #1F8D3E
square
#1F378D #8D1F6E #8D751F #1F8D3E
split-complementary
#1F378D #8D3E1F #6E8D1F
monochromatic
#091029 #14235B #1F378D #2A4BBF #4E6CD8
Accessibility & contrast
On white
10.56
#1F378D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#1F378D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F378D
10.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F378D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F378D | 1.00 | 10.56 | 1.99 | 10.56 |
| #FFFFFF | 10.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #1f378d; /* rgb */ color: rgb(31, 55, 141); /* oklch */ color: oklch(37.6% 0.146 267.0);
Tailwind
colors: {
custom: {
50: '#6d6daf',
500: '#1f378d',
950: '#000000',
},
}SCSS
$custom: #1f378d; $custom-light: #6d6daf; $custom-dark: #000000;
JSON
{
"hex": "#1f378d",
"rgb": {
"r": 31,
"g": 55,
"b": 141
},
"hsl": {
"h": 226.909,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.37592,
"c": 0.1456,
"h": 267
},
"luminance": 0.04947
}Semantic roles & 50–950 ramp
primary
#1F378D
secondary
#BBA34D
accent
#C341E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F