#2242A2#2242A2
#2242A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.160 H 265.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2242A2 |
|---|---|
| RGB | rgb(34, 66, 162) |
| HSL | hsl(225, 65%, 38%) |
| HSV | hsv(225, 79%, 64%) |
| CMYK | cmyk(79%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.45, 24.44, -55.21) |
| CIE-LCH | lch(31.45, 60.38, 293.88°) |
| OKLab | oklab(41.81% -0.0121 -0.1595) |
| OKLCH | oklch(41.81% 0.16 265.7) |
| XYZ | xyz(9.1272, 6.8441, 35.0154) |
| Luminance | 0.0684 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.86
Sapphire (survey)
#2138AB
ΔE00 3.75
Cobalt (survey)
#1E488F
ΔE00 4.29
Blue Blue
#2242C7
ΔE00 5.24
Blueberry
#464196
ΔE00 5.70
Sapphire
#0F52BA
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2242A2 #A28222
analogous
#2282A2 #2242A2 #4222A2
triadic
#2242A2 #A22242 #42A222
tetradic
#2242A2 #A22282 #A28222 #22A242
square
#2242A2 #A22282 #A28222 #22A242
split-complementary
#2242A2 #A24222 #82A222
monochromatic
#0D193D #172D6F #2242A2 #2E57D3 #6180DE
Accessibility & contrast
On white
8.86
#2242A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#2242A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2242A2
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2242A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2242A2 | 1.00 | 8.86 | 2.37 | 8.86 |
| #FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2242a2; /* rgb */ color: rgb(34, 66, 162); /* oklch */ color: oklch(41.8% 0.160 265.7);
Tailwind
colors: {
custom: {
50: '#7275be',
500: '#2242a2',
950: '#000000',
},
}SCSS
$custom: #2242a2; $custom-light: #7275be; $custom-dark: #000000;
JSON
{
"hex": "#2242a2",
"rgb": {
"r": 34,
"g": 66,
"b": 162
},
"hsl": {
"h": 225,
"s": 65.306,
"l": 38.431
},
"oklch": {
"l": 0.41812,
"c": 0.15996,
"h": 265.7
},
"luminance": 0.06845
}Semantic roles & 50–950 ramp
primary
#2242A2
secondary
#C3A95D
accent
#BE40E8
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81