#1F45B1#1F45B1
#1F45B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.177 H 264.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #1F45B1 |
|---|---|
| RGB | rgb(31, 69, 177) |
| HSL | hsl(224, 70%, 41%) |
| HSV | hsv(224, 82%, 69%) |
| CMYK | cmyk(82.5%, 61%, 0%, 30.6%) |
| CIE-LAB | lab(33.39, 27.96, -61.02) |
| CIE-LCH | lch(33.39, 67.12, 294.62°) |
| OKLab | oklab(43.62% -0.0158 -0.1765) |
| OKLCH | oklch(43.62% 0.177 264.9) |
| XYZ | xyz(10.6262, 7.7206, 42.5166) |
| Luminance | 0.0772 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.51
Blue Blue
#2242C7
ΔE00 3.46
Sapphire (survey)
#2138AB
ΔE00 4.12
Sapphire
#0F52BA
ΔE00 4.74
Cobalt (survey)
#1E488F
ΔE00 5.43
Blue (survey)
#0343DF
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F45B1 #B18B1F
analogous
#1F8EB1 #1F45B1 #421FB1
triadic
#1F45B1 #B11F45 #45B11F
tetradic
#1F45B1 #B11F8E #B18B1F #1FB142
square
#1F45B1 #B11F8E #B18B1F #1FB142
split-complementary
#1F45B1 #B1421F #8EB11F
monochromatic
#0D1C49 #16317D #1F45B1 #325EDB #6687E4
Accessibility & contrast
On white
8.25
#1F45B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#1F45B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F45B1
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F45B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F45B1 | 1.00 | 8.25 | 2.54 | 8.25 |
| #FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #1f45b1; /* rgb */ color: rgb(31, 69, 177); /* oklch */ color: oklch(43.6% 0.177 264.9);
Tailwind
colors: {
custom: {
50: '#7578c9',
500: '#1f45b1',
950: '#000000',
},
}SCSS
$custom: #1f45b1; $custom-light: #7578c9; $custom-dark: #000000;
JSON
{
"hex": "#1f45b1",
"rgb": {
"r": 31,
"g": 69,
"b": 177
},
"hsl": {
"h": 224.384,
"s": 70.192,
"l": 40.784
},
"oklch": {
"l": 0.43624,
"c": 0.17724,
"h": 264.9
},
"luminance": 0.07722
}Semantic roles & 50–950 ramp
primary
#1F45B1
secondary
#CAAF62
accent
#BF3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82