#1F2C77#1F2C77
#1F2C77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.129 H 270.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C77 |
|---|---|
| RGB | rgb(31, 44, 119) |
| HSL | hsl(231, 59%, 29%) |
| HSV | hsv(231, 74%, 47%) |
| CMYK | cmyk(73.9%, 63%, 0%, 53.3%) |
| CIE-LAB | lab(21.67, 22.38, -44.53) |
| CIE-LCH | lch(21.67, 49.84, 296.68°) |
| OKLab | oklab(33.35% 0.0006 -0.1285) |
| OKLCH | oklch(33.35% 0.129 270.3) |
| XYZ | xyz(4.7944, 3.4241, 17.8574) |
| Luminance | 0.0343 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.59
Marine
#042E60
ΔE00 6.07
Darkslateblue
#483D8B
ΔE00 7.57
Royal
#0C1793
ΔE00 7.71
Marine Blue
#01386A
ΔE00 7.76
Sapphire (survey)
#2138AB
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C77 #776A1F
analogous
#1F5877 #1F2C77 #3E1F77
triadic
#1F2C77 #771F2C #2C771F
tetradic
#1F2C77 #771F58 #776A1F #1F773E
square
#1F2C77 #771F58 #776A1F #1F773E
split-complementary
#1F2C77 #773E1F #58771F
monochromatic
#060918 #121A46 #1F2C77 #2C3EA8 #4357CE
Accessibility & contrast
On white
12.46
#1F2C77 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#1F2C77 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C77
12.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C77 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C77 | 1.00 | 12.46 | 1.69 | 12.46 |
| #FFFFFF | 12.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2c77; /* rgb */ color: rgb(31, 44, 119); /* oklch */ color: oklch(33.3% 0.129 270.3);
Tailwind
colors: {
custom: {
50: '#68659f',
500: '#1f2c77',
950: '#000000',
},
}SCSS
$custom: #1f2c77; $custom-light: #68659f; $custom-dark: #000000;
JSON
{
"hex": "#1f2c77",
"rgb": {
"r": 31,
"g": 44,
"b": 119
},
"hsl": {
"h": 231.136,
"s": 58.667,
"l": 29.412
},
"oklch": {
"l": 0.33346,
"c": 0.1285,
"h": 270.3
},
"luminance": 0.03425
}Semantic roles & 50–950 ramp
primary
#1F2C77
secondary
#AB9C47
accent
#CB46E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E