#1F2A7F#1F2A7F
#1F2A7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.142 H 270.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A7F |
|---|---|
| RGB | rgb(31, 42, 127) |
| HSL | hsl(233, 61%, 31%) |
| HSV | hsv(233, 76%, 50%) |
| CMYK | cmyk(75.6%, 66.9%, 0%, 50.2%) |
| CIE-LAB | lab(21.87, 26.86, -49.28) |
| CIE-LCH | lch(21.87, 56.13, 298.59°) |
| OKLab | oklab(33.72% 0.0018 -0.1425) |
| OKLCH | oklch(33.72% 0.142 270.7) |
| XYZ | xyz(5.2225, 3.4790, 20.4708) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.92
Royal
#0C1793
ΔE00 6.10
Sapphire (survey)
#2138AB
ΔE00 7.11
Darkslateblue
#483D8B
ΔE00 7.46
Marine
#042E60
ΔE00 7.48
Blueberry
#464196
ΔE00 8.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A7F #7F741F
analogous
#1F5A7F #1F2A7F #441F7F
triadic
#1F2A7F #7F1F2A #2A7F1F
tetradic
#1F2A7F #7F1F5A #7F741F #1F7F44
square
#1F2A7F #7F1F5A #7F741F #1F7F44
split-complementary
#1F2A7F #7F441F #5A7F1F
monochromatic
#07091D #131A4E #1F2A7F #2B3AB0 #4656D2
Accessibility & contrast
On white
12.38
#1F2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A7F
12.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A7F | 1.00 | 12.38 | 1.70 | 12.38 |
| #FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f2a7f; /* rgb */ color: rgb(31, 42, 127); /* oklch */ color: oklch(33.7% 0.142 270.7);
Tailwind
colors: {
custom: {
50: '#6a63a5',
500: '#1f2a7f',
950: '#000000',
},
}SCSS
$custom: #1f2a7f; $custom-light: #6a63a5; $custom-dark: #000000;
JSON
{
"hex": "#1f2a7f",
"rgb": {
"r": 31,
"g": 42,
"b": 127
},
"hsl": {
"h": 233.125,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.33719,
"c": 0.14247,
"h": 270.7
},
"luminance": 0.0348
}Semantic roles & 50–950 ramp
primary
#1F2A7F
secondary
#B2A648
accent
#D244E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F