#1F2C7B#1F2C7B
#1F2C7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.134 H 270.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C7B |
|---|---|
| RGB | rgb(31, 44, 123) |
| HSL | hsl(232, 60%, 30%) |
| HSV | hsv(232, 75%, 48%) |
| CMYK | cmyk(74.8%, 64.2%, 0%, 51.8%) |
| CIE-LAB | lab(22.02, 23.94, -46.49) |
| CIE-LCH | lch(22.02, 52.30, 297.25°) |
| OKLab | oklab(33.72% 0.0006 -0.1343) |
| OKLCH | oklch(33.72% 0.134 270.2) |
| XYZ | xyz(5.0397, 3.5222, 19.1493) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.50
Marine
#042E60
ΔE00 6.56
Royal
#0C1793
ΔE00 7.17
Darkslateblue
#483D8B
ΔE00 7.37
Sapphire (survey)
#2138AB
ΔE00 7.47
Blueberry
#464196
ΔE00 7.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C7B #7B6E1F
analogous
#1F5A7B #1F2C7B #401F7B
triadic
#1F2C7B #7B1F2C #2C7B1F
tetradic
#1F2C7B #7B1F5A #7B6E1F #1F7B40
square
#1F2C7B #7B1F5A #7B6E1F #1F7B40
split-complementary
#1F2C7B #7B401F #5A7B1F
monochromatic
#060919 #131B4A #1F2C7B #2B3DAC #4458D0
Accessibility & contrast
On white
12.32
#1F2C7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2C7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C7B
12.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C7B | 1.00 | 12.32 | 1.70 | 12.32 |
| #FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2c7b; /* rgb */ color: rgb(31, 44, 123); /* oklch */ color: oklch(33.7% 0.134 270.2);
Tailwind
colors: {
custom: {
50: '#6965a2',
500: '#1f2c7b',
950: '#000000',
},
}SCSS
$custom: #1f2c7b; $custom-light: #6965a2; $custom-dark: #000000;
JSON
{
"hex": "#1f2c7b",
"rgb": {
"r": 31,
"g": 44,
"b": 123
},
"hsl": {
"h": 231.522,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.3372,
"c": 0.13427,
"h": 270.2
},
"luminance": 0.03523
}Semantic roles & 50–950 ramp
primary
#1F2C7B
secondary
#AEA048
accent
#CD45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F