#1F28A6#1F28A6
#1F28A6 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.196 H 269.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1F28A6 |
|---|---|
| RGB | rgb(31, 40, 166) |
| HSL | hsl(236, 69%, 39%) |
| HSV | hsv(236, 81%, 65%) |
| CMYK | cmyk(81.3%, 75.9%, 0%, 34.9%) |
| CIE-LAB | lab(25.45, 42.33, -67.50) |
| CIE-LCH | lch(25.45, 79.67, 302.09°) |
| OKLab | oklab(37.51% -0.0018 -0.1955) |
| OKLCH | oklch(37.51% 0.196 269.5) |
| XYZ | xyz(8.2044, 4.5611, 36.5170) |
| Luminance | 0.0456 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.36
Indigo Blue
#3A18B1
ΔE00 4.43
Royal
#0C1793
ΔE00 4.64
Cobalt Blue
#030AA7
ΔE00 5.27
True Blue
#010FCC
ΔE00 5.73
Royal Blue (survey)
#0504AA
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F28A6 #A69D1F
analogous
#1F6BA6 #1F28A6 #591FA6
triadic
#1F28A6 #A61F28 #28A61F
tetradic
#1F28A6 #A61F6B #A69D1F #1FA659
square
#1F28A6 #A61F6B #A69D1F #1FA659
split-complementary
#1F28A6 #A6591F #6BA61F
monochromatic
#0C0F3F #151C72 #1F28A6 #2B36D7 #5E67E1
Accessibility & contrast
On white
10.98
#1F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#1F28A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F28A6
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F28A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F28A6 | 1.00 | 10.98 | 1.91 | 10.98 |
| #FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f28a6; /* rgb */ color: rgb(31, 40, 166); /* oklch */ color: oklch(37.5% 0.196 269.5);
Tailwind
colors: {
custom: {
50: '#7563c2',
500: '#1f28a6',
950: '#000000',
},
}SCSS
$custom: #1f28a6; $custom-light: #7563c2; $custom-dark: #000000;
JSON
{
"hex": "#1f28a6",
"rgb": {
"r": 31,
"g": 40,
"b": 166
},
"hsl": {
"h": 236,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.37508,
"c": 0.19555,
"h": 269.5
},
"luminance": 0.04562
}Semantic roles & 50–950 ramp
primary
#1F28A6
secondary
#C5BE5B
accent
#E03CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82