#1F41A8#1F41A8
#1F41A8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.170 H 265.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).
Color values
| HEX | #1F41A8 |
|---|---|
| RGB | rgb(31, 65, 168) |
| HSL | hsl(225, 69%, 39%) |
| HSV | hsv(225, 82%, 66%) |
| CMYK | cmyk(81.5%, 61.3%, 0%, 34.1%) |
| CIE-LAB | lab(31.57, 27.15, -58.62) |
| CIE-LCH | lch(31.57, 64.61, 294.85°) |
| OKLab | oklab(42.03% -0.0136 -0.1696) |
| OKLCH | oklch(42.03% 0.17 265.4) |
| XYZ | xyz(9.5208, 6.8979, 37.8678) |
| Luminance | 0.0690 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.00
Sapphire (survey)
#2138AB
ΔE00 3.08
Blue Blue
#2242C7
ΔE00 4.40
Cobalt (survey)
#1E488F
ΔE00 5.10
Blueberry
#464196
ΔE00 5.92
Sapphire
#0F52BA
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F41A8 #A8861F
analogous
#1F86A8 #1F41A8 #411FA8
triadic
#1F41A8 #A81F41 #41A81F
tetradic
#1F41A8 #A81F86 #A8861F #1FA841
square
#1F41A8 #A81F86 #A8861F #1FA841
split-complementary
#1F41A8 #A8411F #86A81F
monochromatic
#0C1941 #152D74 #1F41A8 #2C57D8 #6080E2
Accessibility & contrast
On white
8.82
#1F41A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#1F41A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F41A8
8.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F41A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F41A8 | 1.00 | 8.82 | 2.38 | 8.82 |
| #FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #1f41a8; /* rgb */ color: rgb(31, 65, 168); /* oklch */ color: oklch(42.0% 0.170 265.4);
Tailwind
colors: {
custom: {
50: '#7375c3',
500: '#1f41a8',
950: '#000000',
},
}SCSS
$custom: #1f41a8; $custom-light: #7375c3; $custom-dark: #000000;
JSON
{
"hex": "#1f41a8",
"rgb": {
"r": 31,
"g": 65,
"b": 168
},
"hsl": {
"h": 225.109,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.4203,
"c": 0.17012,
"h": 265.4
},
"luminance": 0.06899
}Semantic roles & 50–950 ramp
primary
#1F41A8
secondary
#C6AC5D
accent
#C03CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82