#2A218F#2A218F
#2A218F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.171 H 276.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2A218F |
|---|---|
| RGB | rgb(42, 33, 143) |
| HSL | hsl(245, 63%, 35%) |
| HSV | hsv(245, 77%, 56%) |
| CMYK | cmyk(70.6%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.17, 39.48, -58.79) |
| CIE-LCH | lch(22.17, 70.82, 303.88°) |
| OKLab | oklab(34.62% 0.0187 -0.1699) |
| OKLCH | oklch(34.62% 0.171 276.3) |
| XYZ | xyz(6.4550, 3.5625, 26.3287) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.91
Cobalt Blue
#030AA7
ΔE00 5.07
Midnight Blue
#191970
ΔE00 5.22
Indigo Blue
#3A18B1
ΔE00 5.39
Royal Blue (survey)
#0504AA
ΔE00 5.61
Indigo (survey)
#380282
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A218F #868F21
analogous
#214F8F #2A218F #61218F
triadic
#2A218F #8F2A21 #218F2A
tetradic
#2A218F #8F214F #868F21 #218F61
square
#2A218F #8F214F #868F21 #218F61
split-complementary
#2A218F #8F6121 #4F8F21
monochromatic
#0D0A2C #1B165D #2A218F #392CC1 #5E53D7
Accessibility & contrast
On white
12.26
#2A218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2A218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A218F
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A218F | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a218f; /* rgb */ color: rgb(42, 33, 143); /* oklch */ color: oklch(34.6% 0.171 276.3);
Tailwind
colors: {
custom: {
50: '#735eb1',
500: '#2a218f',
950: '#000000',
},
}SCSS
$custom: #2a218f; $custom-light: #735eb1; $custom-dark: #000000;
JSON
{
"hex": "#2a218f",
"rgb": {
"r": 42,
"g": 33,
"b": 143
},
"hsl": {
"h": 244.909,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.34618,
"c": 0.17096,
"h": 276.3
},
"luminance": 0.03563
}Semantic roles & 50–950 ramp
primary
#2A218F
secondary
#B2BB51
accent
#E642D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980