#1F45B2#1F45B2
#1F45B2 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.179 H 264.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #1F45B2 |
|---|---|
| RGB | rgb(31, 69, 178) |
| HSL | hsl(224, 70%, 41%) |
| HSV | hsv(224, 83%, 70%) |
| CMYK | cmyk(82.6%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(33.48, 28.35, -61.48) |
| CIE-LCH | lch(33.48, 67.70, 294.76°) |
| OKLab | oklab(43.71% -0.0158 -0.1779) |
| OKLCH | oklch(43.71% 0.179 264.9) |
| XYZ | xyz(10.7262, 7.7606, 43.0435) |
| Luminance | 0.0776 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.61
Blue Blue
#2242C7
ΔE00 3.32
Sapphire (survey)
#2138AB
ΔE00 4.12
Sapphire
#0F52BA
ΔE00 4.74
Cobalt (survey)
#1E488F
ΔE00 5.57
Blue (survey)
#0343DF
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F45B2 #B28C1F
analogous
#1F8EB2 #1F45B2 #421FB2
triadic
#1F45B2 #B21F45 #45B21F
tetradic
#1F45B2 #B21F8E #B28C1F #1FB242
square
#1F45B2 #B21F8E #B28C1F #1FB242
split-complementary
#1F45B2 #B2421F #8EB21F
monochromatic
#0D1D4A #16317E #1F45B2 #335EDB #6787E5
Accessibility & contrast
On white
8.23
#1F45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#1F45B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F45B2
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F45B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F45B2 | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #1f45b2; /* rgb */ color: rgb(31, 69, 178); /* oklch */ color: oklch(43.7% 0.179 264.9);
Tailwind
colors: {
custom: {
50: '#7578ca',
500: '#1f45b2',
950: '#000000',
},
}SCSS
$custom: #1f45b2; $custom-light: #7578ca; $custom-dark: #000000;
JSON
{
"hex": "#1f45b2",
"rgb": {
"r": 31,
"g": 69,
"b": 178
},
"hsl": {
"h": 224.49,
"s": 70.335,
"l": 40.98
},
"oklch": {
"l": 0.43714,
"c": 0.17857,
"h": 264.9
},
"luminance": 0.07762
}Semantic roles & 50–950 ramp
primary
#1F45B2
secondary
#CAAF63
accent
#BF3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82