#2242A1#2242A1
#2242A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.159 H 265.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2242A1 |
|---|---|
| RGB | rgb(34, 66, 161) |
| HSL | hsl(225, 65%, 38%) |
| HSV | hsv(225, 79%, 63%) |
| CMYK | cmyk(78.9%, 59%, 0%, 36.9%) |
| CIE-LAB | lab(31.37, 24.05, -54.74) |
| CIE-LCH | lch(31.37, 59.80, 293.72°) |
| OKLab | oklab(41.73% -0.0121 -0.1581) |
| OKLCH | oklch(41.73% 0.159 265.6) |
| XYZ | xyz(9.0387, 6.8087, 34.5491) |
| Luminance | 0.0681 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.87
Sapphire (survey)
#2138AB
ΔE00 3.84
Cobalt (survey)
#1E488F
ΔE00 4.17
Blue Blue
#2242C7
ΔE00 5.39
Blueberry
#464196
ΔE00 5.70
Darkish Blue
#014182
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2242A1 #A18122
analogous
#2281A1 #2242A1 #4122A1
triadic
#2242A1 #A12242 #42A122
tetradic
#2242A1 #A12281 #A18122 #22A141
square
#2242A1 #A12281 #A18122 #22A141
split-complementary
#2242A1 #A14122 #81A122
monochromatic
#0D193C #172D6E #2242A1 #2D57D3 #6080DD
Accessibility & contrast
On white
8.89
#2242A1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2242A1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2242A1
8.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2242A1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2242A1 | 1.00 | 8.89 | 2.36 | 8.89 |
| #FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2242a1; /* rgb */ color: rgb(34, 66, 161); /* oklch */ color: oklch(41.7% 0.159 265.6);
Tailwind
colors: {
custom: {
50: '#7275be',
500: '#2242a1',
950: '#000000',
},
}SCSS
$custom: #2242a1; $custom-light: #7275be; $custom-dark: #000000;
JSON
{
"hex": "#2242a1",
"rgb": {
"r": 34,
"g": 66,
"b": 161
},
"hsl": {
"h": 224.882,
"s": 65.128,
"l": 38.235
},
"oklch": {
"l": 0.41725,
"c": 0.15858,
"h": 265.6
},
"luminance": 0.0681
}Semantic roles & 50–950 ramp
primary
#2242A1
secondary
#C2A95D
accent
#BE40E8
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81