#2A228F#2A228F
#2A228F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.170 H 276.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2A228F |
|---|---|
| RGB | rgb(42, 34, 143) |
| HSL | hsl(244, 62%, 35%) |
| HSV | hsv(244, 76%, 56%) |
| CMYK | cmyk(70.6%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.37, 38.91, -58.46) |
| CIE-LCH | lch(22.37, 70.23, 303.65°) |
| OKLab | oklab(34.76% 0.0182 -0.169) |
| OKLCH | oklch(34.76% 0.17 276.1) |
| XYZ | xyz(6.4832, 3.6189, 26.3381) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.07
Cobalt Blue
#030AA7
ΔE00 5.24
Midnight Blue
#191970
ΔE00 5.26
Indigo Blue
#3A18B1
ΔE00 5.47
Royal Blue (survey)
#0504AA
ΔE00 5.79
Indigo (survey)
#380282
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A228F #878F22
analogous
#22508F #2A228F #61228F
triadic
#2A228F #8F2A22 #228F2A
tetradic
#2A228F #8F2250 #878F22 #228F61
square
#2A228F #8F2250 #878F22 #228F61
split-complementary
#2A228F #8F6122 #508F22
monochromatic
#0D0A2C #1B165E #2A228F #392EC0 #5E55D7
Accessibility & contrast
On white
12.18
#2A228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2A228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A228F
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A228F | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a228f; /* rgb */ color: rgb(42, 34, 143); /* oklch */ color: oklch(34.8% 0.170 276.1);
Tailwind
colors: {
custom: {
50: '#735fb1',
500: '#2a228f',
950: '#000000',
},
}SCSS
$custom: #2a228f; $custom-light: #735fb1; $custom-dark: #000000;
JSON
{
"hex": "#2a228f",
"rgb": {
"r": 42,
"g": 34,
"b": 143
},
"hsl": {
"h": 244.404,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.34759,
"c": 0.16995,
"h": 276.1
},
"luminance": 0.03619
}Semantic roles & 50–950 ramp
primary
#2A228F
secondary
#B3BA52
accent
#E543D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980