#1F41A5#1F41A5
#1F41A5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.166 H 265.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).
Color values
| HEX | #1F41A5 |
|---|---|
| RGB | rgb(31, 65, 165) |
| HSL | hsl(225, 68%, 38%) |
| HSV | hsv(225, 81%, 65%) |
| CMYK | cmyk(81.2%, 60.6%, 0%, 35.3%) |
| CIE-LAB | lab(31.32, 25.99, -57.24) |
| CIE-LCH | lch(31.32, 62.86, 294.42°) |
| OKLab | oklab(41.76% -0.0137 -0.1655) |
| OKLCH | oklch(41.76% 0.166 265.3) |
| XYZ | xyz(9.2445, 6.7874, 36.4129) |
| Luminance | 0.0679 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.93
Sapphire (survey)
#2138AB
ΔE00 3.30
Cobalt (survey)
#1E488F
ΔE00 4.74
Blue Blue
#2242C7
ΔE00 4.83
Blueberry
#464196
ΔE00 5.86
Sapphire
#0F52BA
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F41A5 #A5831F
analogous
#1F84A5 #1F41A5 #401FA5
triadic
#1F41A5 #A51F41 #41A51F
tetradic
#1F41A5 #A51F84 #A5831F #1FA540
square
#1F41A5 #A51F84 #A5831F #1FA540
split-complementary
#1F41A5 #A5401F #84A51F
monochromatic
#0C183E #152D71 #1F41A5 #2A56D7 #5E7FE1
Accessibility & contrast
On white
8.91
#1F41A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#1F41A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F41A5
8.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F41A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F41A5 | 1.00 | 8.91 | 2.36 | 8.91 |
| #FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1f41a5; /* rgb */ color: rgb(31, 65, 165); /* oklch */ color: oklch(41.8% 0.166 265.3);
Tailwind
colors: {
custom: {
50: '#7275c1',
500: '#1f41a5',
950: '#000000',
},
}SCSS
$custom: #1f41a5; $custom-light: #7275c1; $custom-dark: #000000;
JSON
{
"hex": "#1f41a5",
"rgb": {
"r": 31,
"g": 65,
"b": 165
},
"hsl": {
"h": 224.776,
"s": 68.367,
"l": 38.431
},
"oklch": {
"l": 0.41761,
"c": 0.16607,
"h": 265.3
},
"luminance": 0.06789
}Semantic roles & 50–950 ramp
primary
#1F41A5
secondary
#C5AA5B
accent
#BF3DEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81