#2A22A5#2A22A5
#2A22A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.197 H 273.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2A22A5 |
|---|---|
| RGB | rgb(42, 34, 165) |
| HSL | hsl(244, 66%, 39%) |
| HSV | hsv(244, 79%, 65%) |
| CMYK | cmyk(74.5%, 79.4%, 0%, 35.3%) |
| CIE-LAB | lab(24.80, 46.10, -67.94) |
| CIE-LCH | lch(24.80, 82.10, 304.16°) |
| OKLab | oklab(37.19% 0.0131 -0.1965) |
| OKLCH | oklch(37.19% 0.197 273.8) |
| XYZ | xyz(8.3161, 4.3521, 35.9918) |
| Luminance | 0.0435 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.93
Royal
#0C1793
ΔE00 3.99
Cobalt Blue
#030AA7
ΔE00 4.15
Ultramarine
#2000B1
ΔE00 4.45
Royal Blue (survey)
#0504AA
ΔE00 4.55
True Blue
#010FCC
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A22A5 #9DA522
analogous
#225CA5 #2A22A5 #6C22A5
triadic
#2A22A5 #A52A22 #22A52A
tetradic
#2A22A5 #A5225C #9DA522 #22A56C
square
#2A22A5 #A5225C #9DA522 #22A56C
split-complementary
#2A22A5 #A56C22 #5CA522
monochromatic
#100D40 #1D1872 #2A22A5 #3A30D4 #6A63DF
Accessibility & contrast
On white
11.23
#2A22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#2A22A5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A22A5
11.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A22A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A22A5 | 1.00 | 11.23 | 1.87 | 11.23 |
| #FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a22a5; /* rgb */ color: rgb(42, 34, 165); /* oklch */ color: oklch(37.2% 0.197 273.8);
Tailwind
colors: {
custom: {
50: '#7960c1',
500: '#2a22a5',
950: '#000000',
},
}SCSS
$custom: #2a22a5; $custom-light: #7960c1; $custom-dark: #000000;
JSON
{
"hex": "#2a22a5",
"rgb": {
"r": 42,
"g": 34,
"b": 165
},
"hsl": {
"h": 243.664,
"s": 65.829,
"l": 39.02
},
"oklch": {
"l": 0.37188,
"c": 0.19697,
"h": 273.8
},
"luminance": 0.04353
}Semantic roles & 50–950 ramp
primary
#2A22A5
secondary
#BEC45F
accent
#E93FDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981