#1F2C7E#1F2C7E
#1F2C7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.139 H 270.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C7E |
|---|---|
| RGB | rgb(31, 44, 126) |
| HSL | hsl(232, 61%, 31%) |
| HSV | hsv(232, 75%, 49%) |
| CMYK | cmyk(75.4%, 65.1%, 0%, 50.6%) |
| CIE-LAB | lab(22.30, 25.11, -47.95) |
| CIE-LCH | lch(22.30, 54.13, 297.64°) |
| OKLab | oklab(34.01% 0.0005 -0.1385) |
| OKLCH | oklch(34.01% 0.139 270.2) |
| XYZ | xyz(5.2304, 3.5985, 20.1535) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.50
Royal
#0C1793
ΔE00 6.79
Marine
#042E60
ΔE00 6.93
Sapphire (survey)
#2138AB
ΔE00 7.04
Darkslateblue
#483D8B
ΔE00 7.26
Blueberry
#464196
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C7E #7E711F
analogous
#1F5B7E #1F2C7E #411F7E
triadic
#1F2C7E #7E1F2C #2C7E1F
tetradic
#1F2C7E #7E1F5B #7E711F #1F7E41
square
#1F2C7E #7E1F5B #7E711F #1F7E41
split-complementary
#1F2C7E #7E411F #5B7E1F
monochromatic
#070A1C #131B4D #1F2C7E #2B3DAF #4659D1
Accessibility & contrast
On white
12.21
#1F2C7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#1F2C7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C7E
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C7E | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2c7e; /* rgb */ color: rgb(31, 44, 126); /* oklch */ color: oklch(34.0% 0.139 270.2);
Tailwind
colors: {
custom: {
50: '#6a65a4',
500: '#1f2c7e',
950: '#000000',
},
}SCSS
$custom: #1f2c7e; $custom-light: #6a65a4; $custom-dark: #000000;
JSON
{
"hex": "#1f2c7e",
"rgb": {
"r": 31,
"g": 44,
"b": 126
},
"hsl": {
"h": 231.789,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.34006,
"c": 0.13853,
"h": 270.2
},
"luminance": 0.03599
}Semantic roles & 50–950 ramp
primary
#1F2C7E
secondary
#B1A348
accent
#CE44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F