#1F2A9A#1F2A9A
#1F2A9A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.179 H 269.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A9A |
|---|---|
| RGB | rgb(31, 42, 154) |
| HSL | hsl(235, 66%, 36%) |
| HSV | hsv(235, 80%, 60%) |
| CMYK | cmyk(79.9%, 72.7%, 0%, 39.6%) |
| CIE-LAB | lab(24.57, 36.90, -61.63) |
| CIE-LCH | lch(24.57, 71.83, 300.91°) |
| OKLab | oklab(36.5% -0.0009 -0.1785) |
| OKLCH | oklch(36.5% 0.179 269.7) |
| XYZ | xyz(7.2238, 4.2795, 31.0109) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.36
Royal
#0C1793
ΔE00 4.52
Indigo Blue
#3A18B1
ΔE00 5.89
Cobalt Blue
#030AA7
ΔE00 6.16
Royal Blue (survey)
#0504AA
ΔE00 6.73
Ultramarine
#2000B1
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A9A #9A8F1F
analogous
#1F689A #1F2A9A #521F9A
triadic
#1F2A9A #9A1F2A #2A9A1F
tetradic
#1F2A9A #9A1F68 #9A8F1F #1F9A52
square
#1F2A9A #9A1F68 #9A8F1F #1F9A52
split-complementary
#1F2A9A #9A521F #689A1F
monochromatic
#0A0E34 #151C67 #1F2A9A #2938CD #5662DD
Accessibility & contrast
On white
11.31
#1F2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#1F2A9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A9A
11.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A9A | 1.00 | 11.31 | 1.86 | 11.31 |
| #FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f2a9a; /* rgb */ color: rgb(31, 42, 154); /* oklch */ color: oklch(36.5% 0.179 269.7);
Tailwind
colors: {
custom: {
50: '#7164b9',
500: '#1f2a9a',
950: '#000000',
},
}SCSS
$custom: #1f2a9a; $custom-light: #7164b9; $custom-dark: #000000;
JSON
{
"hex": "#1f2a9a",
"rgb": {
"r": 31,
"g": 42,
"b": 154
},
"hsl": {
"h": 234.634,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.36501,
"c": 0.17851,
"h": 269.7
},
"luminance": 0.0428
}Semantic roles & 50–950 ramp
primary
#1F2A9A
secondary
#C1B754
accent
#DA3EE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090512
muted
#7B7A81