#1F2A8C#1F2A8C
#1F2A8C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.160 H 270.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A8C |
|---|---|
| RGB | rgb(31, 42, 140) |
| HSL | hsl(234, 64%, 34%) |
| HSV | hsv(234, 78%, 55%) |
| CMYK | cmyk(77.9%, 70%, 0%, 45.1%) |
| CIE-LAB | lab(23.14, 31.77, -55.36) |
| CIE-LCH | lch(23.14, 63.83, 299.85°) |
| OKLab | oklab(35.03% 0.0007 -0.1602) |
| OKLCH | oklch(35.03% 0.16 270.3) |
| XYZ | xyz(6.1250, 3.8400, 25.2242) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.88
Sapphire (survey)
#2138AB
ΔE00 5.57
Midnight Blue
#191970
ΔE00 5.74
Cobalt Blue
#030AA7
ΔE00 7.30
Darkslateblue
#483D8B
ΔE00 7.41
Indigo Blue
#3A18B1
ΔE00 7.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A8C #8C811F
analogous
#1F608C #1F2A8C #4A1F8C
triadic
#1F2A8C #8C1F2A #2A8C1F
tetradic
#1F2A8C #8C1F60 #8C811F #1F8C4A
square
#1F2A8C #8C1F60 #8C811F #1F8C4A
split-complementary
#1F2A8C #8C4A1F #608C1F
monochromatic
#090C28 #141B5A #1F2A8C #2A39BE #4E5CD8
Accessibility & contrast
On white
11.88
#1F2A8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F2A8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A8C
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A8C | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2a8c; /* rgb */ color: rgb(31, 42, 140); /* oklch */ color: oklch(35.0% 0.160 270.3);
Tailwind
colors: {
custom: {
50: '#6e64af',
500: '#1f2a8c',
950: '#000000',
},
}SCSS
$custom: #1f2a8c; $custom-light: #6e64af; $custom-dark: #000000;
JSON
{
"hex": "#1f2a8c",
"rgb": {
"r": 31,
"g": 42,
"b": 140
},
"hsl": {
"h": 233.945,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.35029,
"c": 0.16022,
"h": 270.3
},
"luminance": 0.03841
}Semantic roles & 50–950 ramp
primary
#1F2A8C
secondary
#BBAF4C
accent
#D641E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F