#1F41A1#1F41A1
#1F41A1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.161 H 265.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #1F41A1 |
|---|---|
| RGB | rgb(31, 65, 161) |
| HSL | hsl(224, 68%, 38%) |
| HSV | hsv(224, 81%, 63%) |
| CMYK | cmyk(80.7%, 59.6%, 0%, 36.9%) |
| CIE-LAB | lab(30.98, 24.42, -55.38) |
| CIE-LCH | lch(30.98, 60.52, 293.80°) |
| OKLab | oklab(41.4% -0.0138 -0.16) |
| OKLCH | oklch(41.4% 0.161 265.1) |
| XYZ | xyz(8.8861, 6.6441, 34.5254) |
| Luminance | 0.0664 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.94
Sapphire (survey)
#2138AB
ΔE00 3.66
Cobalt (survey)
#1E488F
ΔE00 4.28
Blue Blue
#2242C7
ΔE00 5.42
Blueberry
#464196
ΔE00 5.85
Darkish Blue
#014182
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F41A1 #A17F1F
analogous
#1F82A1 #1F41A1 #3E1FA1
triadic
#1F41A1 #A11F41 #41A11F
tetradic
#1F41A1 #A11F82 #A17F1F #1FA13E
square
#1F41A1 #A11F82 #A17F1F #1FA13E
split-complementary
#1F41A1 #A13E1F #82A11F
monochromatic
#0B183A #152C6E #1F41A1 #2956D4 #5B7EDF
Accessibility & contrast
On white
9.02
#1F41A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#1F41A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F41A1
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F41A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F41A1 | 1.00 | 9.02 | 2.33 | 9.02 |
| #FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1f41a1; /* rgb */ color: rgb(31, 65, 161); /* oklch */ color: oklch(41.4% 0.161 265.1);
Tailwind
colors: {
custom: {
50: '#7175be',
500: '#1f41a1',
950: '#000000',
},
}SCSS
$custom: #1f41a1; $custom-light: #7175be; $custom-dark: #000000;
JSON
{
"hex": "#1f41a1",
"rgb": {
"r": 31,
"g": 65,
"b": 161
},
"hsl": {
"h": 224.308,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.41405,
"c": 0.16064,
"h": 265.1
},
"luminance": 0.06645
}Semantic roles & 50–950 ramp
primary
#1F41A1
secondary
#C4A758
accent
#BD3DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81