#1F2C7A#1F2C7A
#1F2C7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.133 H 270.3°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C7A |
|---|---|
| RGB | rgb(31, 44, 122) |
| HSL | hsl(231, 59%, 30%) |
| HSV | hsv(231, 75%, 48%) |
| CMYK | cmyk(74.6%, 63.9%, 0%, 52.2%) |
| CIE-LAB | lab(21.93, 23.55, -46.01) |
| CIE-LCH | lch(21.93, 51.68, 297.11°) |
| OKLab | oklab(33.63% 0.0006 -0.1328) |
| OKLCH | oklch(33.63% 0.133 270.3) |
| XYZ | xyz(4.9774, 3.4973, 18.8213) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.51
Marine
#042E60
ΔE00 6.43
Royal
#0C1793
ΔE00 7.30
Darkslateblue
#483D8B
ΔE00 7.42
Sapphire (survey)
#2138AB
ΔE00 7.62
Marine Blue
#01386A
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C7A #7A6D1F
analogous
#1F597A #1F2C7A #401F7A
triadic
#1F2C7A #7A1F2C #2C7A1F
tetradic
#1F2C7A #7A1F59 #7A6D1F #1F7A40
square
#1F2C7A #7A1F59 #7A6D1F #1F7A40
split-complementary
#1F2C7A #7A401F #597A1F
monochromatic
#060918 #131A49 #1F2C7A #2B3EAB #4458CF
Accessibility & contrast
On white
12.36
#1F2C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C7A
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C7A | 1.00 | 12.36 | 1.70 | 12.36 |
| #FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2c7a; /* rgb */ color: rgb(31, 44, 122); /* oklch */ color: oklch(33.6% 0.133 270.3);
Tailwind
colors: {
custom: {
50: '#6965a1',
500: '#1f2c7a',
950: '#000000',
},
}SCSS
$custom: #1f2c7a; $custom-light: #6965a1; $custom-dark: #000000;
JSON
{
"hex": "#1f2c7a",
"rgb": {
"r": 31,
"g": 44,
"b": 122
},
"hsl": {
"h": 231.429,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.33626,
"c": 0.13283,
"h": 270.3
},
"luminance": 0.03498
}Semantic roles & 50–950 ramp
primary
#1F2C7A
secondary
#AD9F47
accent
#CC45E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F