#2A22A6#2A22A6
#2A22A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.198 H 273.7°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2A22A6 |
|---|---|
| RGB | rgb(42, 34, 166) |
| HSL | hsl(244, 66%, 39%) |
| HSV | hsv(244, 80%, 65%) |
| CMYK | cmyk(74.7%, 79.5%, 0%, 34.9%) |
| CIE-LAB | lab(24.92, 46.42, -68.35) |
| CIE-LCH | lch(24.92, 82.62, 304.18°) |
| OKLab | oklab(37.3% 0.0129 -0.1977) |
| OKLCH | oklch(37.3% 0.198 273.7) |
| XYZ | xyz(8.4075, 4.3886, 36.4730) |
| Luminance | 0.0439 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.85
Royal
#0C1793
ΔE00 4.09
Cobalt Blue
#030AA7
ΔE00 4.15
Ultramarine
#2000B1
ΔE00 4.41
Royal Blue (survey)
#0504AA
ΔE00 4.55
True Blue
#010FCC
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A22A6 #9EA622
analogous
#225CA6 #2A22A6 #6C22A6
triadic
#2A22A6 #A62A22 #22A62A
tetradic
#2A22A6 #A6225C #9EA622 #22A66C
square
#2A22A6 #A6225C #9EA622 #22A66C
split-complementary
#2A22A6 #A66C22 #5CA622
monochromatic
#100D40 #1D1873 #2A22A6 #3A30D5 #6B63DF
Accessibility & contrast
On white
11.18
#2A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#2A22A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A22A6
11.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A22A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A22A6 | 1.00 | 11.18 | 1.88 | 11.18 |
| #FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2a22a6; /* rgb */ color: rgb(42, 34, 166); /* oklch */ color: oklch(37.3% 0.198 273.7);
Tailwind
colors: {
custom: {
50: '#7960c2',
500: '#2a22a6',
950: '#000000',
},
}SCSS
$custom: #2a22a6; $custom-light: #7960c2; $custom-dark: #000000;
JSON
{
"hex": "#2a22a6",
"rgb": {
"r": 42,
"g": 34,
"b": 166
},
"hsl": {
"h": 243.636,
"s": 66,
"l": 39.216
},
"oklch": {
"l": 0.37301,
"c": 0.19816,
"h": 273.7
},
"luminance": 0.04389
}Semantic roles & 50–950 ramp
primary
#2A22A6
secondary
#BEC45F
accent
#E93FDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982