#1F22B3#1F22B3
#1F22B3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.216 H 269.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).
Color values
| HEX | #1F22B3 |
|---|---|
| RGB | rgb(31, 34, 179) |
| HSL | hsl(239, 70%, 41%) |
| HSV | hsv(239, 83%, 70%) |
| CMYK | cmyk(82.7%, 81%, 0%, 29.8%) |
| CIE-LAB | lab(25.83, 49.86, -74.68) |
| CIE-LCH | lch(25.83, 89.79, 303.73°) |
| OKLab | oklab(38.21% -0.0025 -0.2163) |
| OKLCH | oklch(38.21% 0.216 269.3) |
| XYZ | xyz(9.2710, 4.6889, 43.0555) |
| Luminance | 0.0469 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.90
True Blue
#010FCC
ΔE00 3.60
Ultramarine
#2000B1
ΔE00 4.34
Cobalt Blue
#030AA7
ΔE00 4.39
Mediumblue
#0000CD
ΔE00 4.40
Royal Blue (survey)
#0504AA
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F22B3 #B3B01F
analogous
#1F6CB3 #1F22B3 #661FB3
triadic
#1F22B3 #B31F22 #22B31F
tetradic
#1F22B3 #B31F6C #B3B01F #1FB366
square
#1F22B3 #B31F6C #B3B01F #1FB366
split-complementary
#1F22B3 #B3661F #6CB31F
monochromatic
#0D0E4B #16187F #1F22B3 #3337DC #686AE5
Accessibility & contrast
On white
10.84
#1F22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#1F22B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F22B3
10.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F22B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F22B3 | 1.00 | 10.84 | 1.94 | 10.84 |
| #FFFFFF | 10.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #1f22b3; /* rgb */ color: rgb(31, 34, 179); /* oklch */ color: oklch(38.2% 0.216 269.3);
Tailwind
colors: {
custom: {
50: '#7961cb',
500: '#1f22b3',
950: '#000000',
},
}SCSS
$custom: #1f22b3; $custom-light: #7961cb; $custom-dark: #000000;
JSON
{
"hex": "#1f22b3",
"rgb": {
"r": 31,
"g": 34,
"b": 179
},
"hsl": {
"h": 238.784,
"s": 70.476,
"l": 41.176
},
"oklch": {
"l": 0.38215,
"c": 0.21628,
"h": 269.3
},
"luminance": 0.0469
}Semantic roles & 50–950 ramp
primary
#1F22B3
secondary
#CAC864
accent
#EA3BED
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982