#1F2282#1F2282
#1F2282 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.156 H 272.4°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2282 |
|---|---|
| RGB | rgb(31, 34, 130) |
| HSL | hsl(238, 61%, 32%) |
| HSV | hsv(238, 76%, 51%) |
| CMYK | cmyk(76.2%, 73.8%, 0%, 49%) |
| CIE-LAB | lab(20.23, 33.23, -53.87) |
| CIE-LCH | lch(20.23, 63.30, 301.66°) |
| OKLab | oklab(32.62% 0.0065 -0.1559) |
| OKLCH | oklch(32.62% 0.156 272.4) |
| XYZ | xyz(5.1650, 3.0465, 21.4306) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.35
Royal
#0C1793
ΔE00 3.79
Darkblue
#00008B
ΔE00 6.54
Dark Royal Blue
#02066F
ΔE00 6.56
Navy
#000080
ΔE00 6.71
Cobalt Blue
#030AA7
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2282 #827F1F
analogous
#1F5482 #1F2282 #4E1F82
triadic
#1F2282 #821F22 #22821F
tetradic
#1F2282 #821F54 #827F1F #1F824E
square
#1F2282 #821F54 #827F1F #1F824E
split-complementary
#1F2282 #824E1F #54821F
monochromatic
#07081F #131551 #1F2282 #2B2FB3 #484CD3
Accessibility & contrast
On white
13.05
#1F2282 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1F2282 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2282
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2282 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2282 | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2282; /* rgb */ color: rgb(31, 34, 130); /* oklch */ color: oklch(32.6% 0.156 272.4);
Tailwind
colors: {
custom: {
50: '#6c5ea7',
500: '#1f2282',
950: '#000000',
},
}SCSS
$custom: #1f2282; $custom-light: #6c5ea7; $custom-dark: #000000;
JSON
{
"hex": "#1f2282",
"rgb": {
"r": 31,
"g": 34,
"b": 130
},
"hsl": {
"h": 238.182,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.32623,
"c": 0.15601,
"h": 272.4
},
"luminance": 0.03047
}Semantic roles & 50–950 ramp
primary
#1F2282
secondary
#B5B248
accent
#E043E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F