#1F2182#1F2182
#1F2182 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.157 H 272.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2182 |
|---|---|
| RGB | rgb(31, 33, 130) |
| HSL | hsl(239, 61%, 32%) |
| HSV | hsv(239, 76%, 51%) |
| CMYK | cmyk(76.2%, 74.6%, 0%, 49%) |
| CIE-LAB | lab(20.00, 33.85, -54.24) |
| CIE-LCH | lch(20.00, 63.94, 301.96°) |
| OKLab | oklab(32.46% 0.007 -0.157) |
| OKLCH | oklch(32.46% 0.157 272.5) |
| XYZ | xyz(5.1368, 2.9902, 21.4212) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.22
Royal
#0C1793
ΔE00 3.59
Darkblue
#00008B
ΔE00 6.28
Dark Royal Blue
#02066F
ΔE00 6.32
Navy
#000080
ΔE00 6.44
Cobalt Blue
#030AA7
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2182 #82801F
analogous
#1F5382 #1F2182 #4F1F82
triadic
#1F2182 #821F21 #21821F
tetradic
#1F2182 #821F53 #82801F #1F824F
square
#1F2182 #821F53 #82801F #1F824F
split-complementary
#1F2182 #824F1F #53821F
monochromatic
#07081F #131451 #1F2182 #2B2EB3 #484BD3
Accessibility & contrast
On white
13.14
#1F2182 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#1F2182 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2182
13.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2182 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2182 | 1.00 | 13.14 | 1.60 | 13.14 |
| #FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f2182; /* rgb */ color: rgb(31, 33, 130); /* oklch */ color: oklch(32.5% 0.157 272.5);
Tailwind
colors: {
custom: {
50: '#6c5da7',
500: '#1f2182',
950: '#000000',
},
}SCSS
$custom: #1f2182; $custom-light: #6c5da7; $custom-dark: #000000;
JSON
{
"hex": "#1f2182",
"rgb": {
"r": 31,
"g": 33,
"b": 130
},
"hsl": {
"h": 238.788,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.32463,
"c": 0.15712,
"h": 272.5
},
"luminance": 0.02991
}Semantic roles & 50–950 ramp
primary
#1F2182
secondary
#B5B348
accent
#E143E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F