#1F2AA1#1F2AA1
#1F2AA1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.187 H 269.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2AA1 |
|---|---|
| RGB | rgb(31, 42, 161) |
| HSL | hsl(235, 68%, 38%) |
| HSV | hsv(235, 81%, 63%) |
| CMYK | cmyk(80.7%, 73.9%, 0%, 36.9%) |
| CIE-LAB | lab(25.32, 39.40, -64.67) |
| CIE-LCH | lch(25.32, 75.73, 301.35°) |
| OKLab | oklab(37.26% -0.0018 -0.1874) |
| OKLCH | oklch(37.26% 0.187 269.4) |
| XYZ | xyz(7.8239, 4.5195, 34.1713) |
| Luminance | 0.0452 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.00
Royal
#0C1793
ΔE00 4.75
Indigo Blue
#3A18B1
ΔE00 5.21
Cobalt Blue
#030AA7
ΔE00 5.86
Royal Blue (survey)
#0504AA
ΔE00 6.38
Ultramarine
#2000B1
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2AA1 #A1961F
analogous
#1F6BA1 #1F2AA1 #551FA1
triadic
#1F2AA1 #A11F2A #2AA11F
tetradic
#1F2AA1 #A11F6B #A1961F #1FA155
square
#1F2AA1 #A11F6B #A1961F #1FA155
split-complementary
#1F2AA1 #A1551F #6BA11F
monochromatic
#0B0F3A #151D6E #1F2AA1 #2937D4 #5B66DF
Accessibility & contrast
On white
11.03
#1F2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#1F2AA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2AA1
11.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2AA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2AA1 | 1.00 | 11.03 | 1.90 | 11.03 |
| #FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f2aa1; /* rgb */ color: rgb(31, 42, 161); /* oklch */ color: oklch(37.3% 0.187 269.4);
Tailwind
colors: {
custom: {
50: '#7364be',
500: '#1f2aa1',
950: '#000000',
},
}SCSS
$custom: #1f2aa1; $custom-light: #7364be; $custom-dark: #000000;
JSON
{
"hex": "#1f2aa1",
"rgb": {
"r": 31,
"g": 42,
"b": 161
},
"hsl": {
"h": 234.923,
"s": 67.708,
"l": 37.647
},
"oklch": {
"l": 0.37256,
"c": 0.18737,
"h": 269.4
},
"luminance": 0.0452
}Semantic roles & 50–950 ramp
primary
#1F2AA1
secondary
#C4BA58
accent
#DC3DEB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81