#1F45A8#1F45A8
#1F45A8 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.165 H 264.4°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #1F45A8 |
|---|---|
| RGB | rgb(31, 69, 168) |
| HSL | hsl(223, 69%, 39%) |
| HSV | hsv(223, 82%, 66%) |
| CMYK | cmyk(81.5%, 58.9%, 0%, 34.1%) |
| CIE-LAB | lab(32.64, 24.46, -56.88) |
| CIE-LCH | lch(32.64, 61.92, 293.27°) |
| OKLab | oklab(42.83% -0.0161 -0.1644) |
| OKLCH | oklch(42.83% 0.165 264.4) |
| XYZ | xyz(9.7586, 7.3735, 37.9471) |
| Luminance | 0.0737 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 1.91
Cobalt (survey)
#1E488F
ΔE00 4.21
Sapphire (survey)
#2138AB
ΔE00 4.44
Blue Blue
#2242C7
ΔE00 4.74
Sapphire
#0F52BA
ΔE00 4.88
Darkish Blue
#014182
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F45A8 #A8821F
analogous
#1F8AA8 #1F45A8 #3E1FA8
triadic
#1F45A8 #A81F45 #45A81F
tetradic
#1F45A8 #A81F8A #A8821F #1FA83E
square
#1F45A8 #A81F8A #A8821F #1FA83E
split-complementary
#1F45A8 #A83E1F #8AA81F
monochromatic
#0C1B41 #153074 #1F45A8 #2C5CD8 #6084E2
Accessibility & contrast
On white
8.48
#1F45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#1F45A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F45A8
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F45A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F45A8 | 1.00 | 8.48 | 2.47 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #1f45a8; /* rgb */ color: rgb(31, 69, 168); /* oklch */ color: oklch(42.8% 0.165 264.4);
Tailwind
colors: {
custom: {
50: '#7378c3',
500: '#1f45a8',
950: '#000000',
},
}SCSS
$custom: #1f45a8; $custom-light: #7378c3; $custom-dark: #000000;
JSON
{
"hex": "#1f45a8",
"rgb": {
"r": 31,
"g": 69,
"b": 168
},
"hsl": {
"h": 223.358,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.42829,
"c": 0.16517,
"h": 264.4
},
"luminance": 0.07375
}Semantic roles & 50–950 ramp
primary
#1F45A8
secondary
#C6A95D
accent
#BB3CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82