#1F399C#1F399C
#1F399C is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.164 H 266.9°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F399C |
|---|---|
| RGB | rgb(31, 57, 156) |
| HSL | hsl(228, 67%, 37%) |
| HSV | hsv(228, 80%, 61%) |
| CMYK | cmyk(80.1%, 63.5%, 0%, 38.8%) |
| CIE-LAB | lab(28.42, 27.88, -56.53) |
| CIE-LCH | lch(28.42, 63.03, 296.26°) |
| OKLab | oklab(39.37% -0.0088 -0.1635) |
| OKLCH | oklch(39.37% 0.164 266.9) |
| XYZ | xyz(8.0269, 5.6169, 32.1072) |
| Luminance | 0.0562 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.37
Cobalt
#0047AB
ΔE00 5.37
Blueberry
#464196
ΔE00 5.52
Cobalt (survey)
#1E488F
ΔE00 6.27
Blue Blue
#2242C7
ΔE00 6.29
Darkslateblue
#483D8B
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F399C #9C821F
analogous
#1F789C #1F399C #441F9C
triadic
#1F399C #9C1F39 #399C1F
tetradic
#1F399C #9C1F78 #9C821F #1F9C44
square
#1F399C #9C1F78 #9C821F #1F9C44
split-complementary
#1F399C #9C441F #789C1F
monochromatic
#0B1436 #152669 #1F399C #294CCF #5874DE
Accessibility & contrast
On white
9.89
#1F399C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#1F399C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F399C
9.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F399C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F399C | 1.00 | 9.89 | 2.12 | 9.89 |
| #FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #1f399c; /* rgb */ color: rgb(31, 57, 156); /* oklch */ color: oklch(39.4% 0.164 266.9);
Tailwind
colors: {
custom: {
50: '#706fba',
500: '#1f399c',
950: '#000000',
},
}SCSS
$custom: #1f399c; $custom-light: #706fba; $custom-dark: #000000;
JSON
{
"hex": "#1f399c",
"rgb": {
"r": 31,
"g": 57,
"b": 156
},
"hsl": {
"h": 227.52,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.39368,
"c": 0.16376,
"h": 266.9
},
"luminance": 0.05618
}Semantic roles & 50–950 ramp
primary
#1F399C
secondary
#C1AB55
accent
#C63EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81