#1F2AA0#1F2AA0
#1F2AA0 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.186 H 269.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2AA0 |
|---|---|
| RGB | rgb(31, 42, 160) |
| HSL | hsl(235, 68%, 37%) |
| HSV | hsv(235, 81%, 63%) |
| CMYK | cmyk(80.6%, 73.8%, 0%, 37.3%) |
| CIE-LAB | lab(25.21, 39.05, -64.24) |
| CIE-LCH | lch(25.21, 75.18, 301.29°) |
| OKLab | oklab(37.15% -0.0017 -0.1861) |
| OKLCH | oklch(37.15% 0.186 269.5) |
| XYZ | xyz(7.7360, 4.4844, 33.7087) |
| Luminance | 0.0449 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.04
Royal
#0C1793
ΔE00 4.70
Indigo Blue
#3A18B1
ΔE00 5.30
Cobalt Blue
#030AA7
ΔE00 5.89
Royal Blue (survey)
#0504AA
ΔE00 6.42
Ultramarine
#2000B1
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2AA0 #A0951F
analogous
#1F6AA0 #1F2AA0 #551FA0
triadic
#1F2AA0 #A01F2A #2AA01F
tetradic
#1F2AA0 #A01F6A #A0951F #1FA055
square
#1F2AA0 #A01F6A #A0951F #1FA055
split-complementary
#1F2AA0 #A0551F #6AA01F
monochromatic
#0B0F39 #151D6D #1F2AA0 #2937D3 #5A66DF
Accessibility & contrast
On white
11.07
#1F2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#1F2AA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2AA0
11.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2AA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2AA0 | 1.00 | 11.07 | 1.90 | 11.07 |
| #FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f2aa0; /* rgb */ color: rgb(31, 42, 160); /* oklch */ color: oklch(37.1% 0.186 269.5);
Tailwind
colors: {
custom: {
50: '#7364bd',
500: '#1f2aa0',
950: '#000000',
},
}SCSS
$custom: #1f2aa0; $custom-light: #7364bd; $custom-dark: #000000;
JSON
{
"hex": "#1f2aa0",
"rgb": {
"r": 31,
"g": 42,
"b": 160
},
"hsl": {
"h": 234.884,
"s": 67.539,
"l": 37.451
},
"oklch": {
"l": 0.37148,
"c": 0.18611,
"h": 269.5
},
"luminance": 0.04485
}Semantic roles & 50–950 ramp
primary
#1F2AA0
secondary
#C3BA58
accent
#DC3DEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81