#1F2A83#1F2A83
#1F2A83 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.148 H 270.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2A83 |
|---|---|
| RGB | rgb(31, 42, 131) |
| HSL | hsl(233, 62%, 32%) |
| HSV | hsv(233, 76%, 51%) |
| CMYK | cmyk(76.3%, 67.9%, 0%, 48.6%) |
| CIE-LAB | lab(22.25, 28.39, -51.18) |
| CIE-LCH | lch(22.25, 58.53, 299.01°) |
| OKLab | oklab(34.12% 0.0016 -0.148) |
| OKLCH | oklch(34.12% 0.148 270.6) |
| XYZ | xyz(5.4884, 3.5854, 21.8711) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.08
Royal
#0C1793
ΔE00 5.65
Sapphire (survey)
#2138AB
ΔE00 6.60
Darkslateblue
#483D8B
ΔE00 7.40
Blueberry
#464196
ΔE00 7.86
Marine
#042E60
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2A83 #83781F
analogous
#1F5C83 #1F2A83 #461F83
triadic
#1F2A83 #831F2A #2A831F
tetradic
#1F2A83 #831F5C #83781F #1F8346
square
#1F2A83 #831F5C #83781F #1F8346
split-complementary
#1F2A83 #83461F #5C831F
monochromatic
#080A20 #131A52 #1F2A83 #2B3AB4 #4958D4
Accessibility & contrast
On white
12.23
#1F2A83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#1F2A83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2A83
12.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2A83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2A83 | 1.00 | 12.23 | 1.72 | 12.23 |
| #FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2a83; /* rgb */ color: rgb(31, 42, 131); /* oklch */ color: oklch(34.1% 0.148 270.6);
Tailwind
colors: {
custom: {
50: '#6b63a8',
500: '#1f2a83',
950: '#000000',
},
}SCSS
$custom: #1f2a83; $custom-light: #6b63a8; $custom-dark: #000000;
JSON
{
"hex": "#1f2a83",
"rgb": {
"r": 31,
"g": 42,
"b": 131
},
"hsl": {
"h": 233.4,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.34116,
"c": 0.14802,
"h": 270.6
},
"luminance": 0.03586
}Semantic roles & 50–950 ramp
primary
#1F2A83
secondary
#B6AA48
accent
#D343E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F