#1F2C7C#1F2C7C
#1F2C7C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.136 H 270.2°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2C7C |
|---|---|
| RGB | rgb(31, 44, 124) |
| HSL | hsl(232, 60%, 30%) |
| HSV | hsv(232, 75%, 49%) |
| CMYK | cmyk(75%, 64.5%, 0%, 51.4%) |
| CIE-LAB | lab(22.11, 24.33, -46.98) |
| CIE-LCH | lch(22.11, 52.91, 297.38°) |
| OKLab | oklab(33.82% 0.0005 -0.1357) |
| OKLCH | oklch(33.82% 0.136 270.2) |
| XYZ | xyz(5.1026, 3.5474, 19.4807) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.49
Marine
#042E60
ΔE00 6.68
Royal
#0C1793
ΔE00 7.04
Sapphire (survey)
#2138AB
ΔE00 7.33
Darkslateblue
#483D8B
ΔE00 7.33
Blueberry
#464196
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2C7C #7C6F1F
analogous
#1F5A7C #1F2C7C #401F7C
triadic
#1F2C7C #7C1F2C #2C7C1F
tetradic
#1F2C7C #7C1F5A #7C6F1F #1F7C40
square
#1F2C7C #7C1F5A #7C6F1F #1F7C40
split-complementary
#1F2C7C #7C401F #5A7C1F
monochromatic
#07091A #131B4B #1F2C7C #2B3DAD #4558D0
Accessibility & contrast
On white
12.28
#1F2C7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#1F2C7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2C7C
12.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2C7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2C7C | 1.00 | 12.28 | 1.71 | 12.28 |
| #FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2c7c; /* rgb */ color: rgb(31, 44, 124); /* oklch */ color: oklch(33.8% 0.136 270.2);
Tailwind
colors: {
custom: {
50: '#6965a3',
500: '#1f2c7c',
950: '#000000',
},
}SCSS
$custom: #1f2c7c; $custom-light: #6965a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2c7c",
"rgb": {
"r": 31,
"g": 44,
"b": 124
},
"hsl": {
"h": 231.613,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.33815,
"c": 0.13569,
"h": 270.2
},
"luminance": 0.03548
}Semantic roles & 50–950 ramp
primary
#1F2C7C
secondary
#AFA148
accent
#CD45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F