#2A229F#2A229F
#2A229F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.190 H 274.4°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2A229F |
|---|---|
| RGB | rgb(42, 34, 159) |
| HSL | hsl(244, 65%, 38%) |
| HSV | hsv(244, 79%, 62%) |
| CMYK | cmyk(73.6%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(24.12, 44.17, -65.41) |
| CIE-LCH | lch(24.12, 78.93, 304.03°) |
| OKLab | oklab(36.52% 0.0145 -0.1892) |
| OKLCH | oklch(36.52% 0.19 274.4) |
| XYZ | xyz(7.7828, 4.1387, 33.1829) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.48
Indigo Blue
#3A18B1
ΔE00 3.51
Cobalt Blue
#030AA7
ΔE00 4.21
Royal Blue (survey)
#0504AA
ΔE00 4.68
Ultramarine
#2000B1
ΔE00 4.77
True Blue
#010FCC
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A229F #979F22
analogous
#22589F #2A229F #68229F
triadic
#2A229F #9F2A22 #229F2A
tetradic
#2A229F #9F2258 #979F22 #229F68
square
#2A229F #9F2258 #979F22 #229F68
split-complementary
#2A229F #9F6822 #589F22
monochromatic
#0F0C3A #1D176D #2A229F #372DD1 #675FDD
Accessibility & contrast
On white
11.49
#2A229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#2A229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A229F
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A229F | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2a229f; /* rgb */ color: rgb(42, 34, 159); /* oklch */ color: oklch(36.5% 0.190 274.4);
Tailwind
colors: {
custom: {
50: '#7760bd',
500: '#2a229f',
950: '#000000',
},
}SCSS
$custom: #2a229f; $custom-light: #7760bd; $custom-dark: #000000;
JSON
{
"hex": "#2a229f",
"rgb": {
"r": 42,
"g": 34,
"b": 159
},
"hsl": {
"h": 243.84,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.36515,
"c": 0.18975,
"h": 274.4
},
"luminance": 0.04139
}Semantic roles & 50–950 ramp
primary
#2A229F
secondary
#BBC15B
accent
#E840DD
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981