#1F22A6#1F22A6
#1F22A6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.7% C 0.201 H 270.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #1F22A6 |
|---|---|
| RGB | rgb(31, 34, 166) |
| HSL | hsl(239, 69%, 39%) |
| HSV | hsv(239, 81%, 65%) |
| CMYK | cmyk(81.3%, 79.5%, 0%, 34.9%) |
| CIE-LAB | lab(24.28, 45.65, -69.42) |
| CIE-LCH | lch(24.28, 83.09, 303.33°) |
| OKLab | oklab(36.69% 0 -0.2011) |
| OKLCH | oklch(36.69% 0.201 270) |
| XYZ | xyz(8.0177, 4.1876, 36.4547) |
| Luminance | 0.0419 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.53
Royal
#0C1793
ΔE00 3.69
Cobalt Blue
#030AA7
ΔE00 3.93
Royal Blue (survey)
#0504AA
ΔE00 4.39
Ultramarine
#2000B1
ΔE00 4.52
True Blue
#010FCC
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F22A6 #A6A31F
analogous
#1F65A6 #1F22A6 #5F1FA6
triadic
#1F22A6 #A61F22 #22A61F
tetradic
#1F22A6 #A61F65 #A6A31F #1FA65F
square
#1F22A6 #A61F65 #A6A31F #1FA65F
split-complementary
#1F22A6 #A65F1F #65A61F
monochromatic
#0C0D3F #151772 #1F22A6 #2B2FD7 #5E61E1
Accessibility & contrast
On white
11.43
#1F22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#1F22A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F22A6
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F22A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F22A6 | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f22a6; /* rgb */ color: rgb(31, 34, 166); /* oklch */ color: oklch(36.7% 0.201 270.0);
Tailwind
colors: {
custom: {
50: '#7560c2',
500: '#1f22a6',
950: '#000000',
},
}SCSS
$custom: #1f22a6; $custom-light: #7560c2; $custom-dark: #000000;
JSON
{
"hex": "#1f22a6",
"rgb": {
"r": 31,
"g": 34,
"b": 166
},
"hsl": {
"h": 238.667,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.36687,
"c": 0.20106,
"h": 270
},
"luminance": 0.04189
}Semantic roles & 50–950 ramp
primary
#1F22A6
secondary
#C5C35B
accent
#E73CEB
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982