#2A2EAB#2A2EAB
#2A2EAB is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.193 H 272.0°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2EAB |
|---|---|
| RGB | rgb(42, 46, 171) |
| HSL | hsl(238, 61%, 42%) |
| HSV | hsv(238, 75%, 67%) |
| CMYK | cmyk(75.4%, 73.1%, 0%, 32.9%) |
| CIE-LAB | lab(27.81, 41.42, -66.59) |
| CIE-LCH | lch(27.81, 78.42, 301.88°) |
| OKLab | oklab(39.5% 0.0067 -0.1927) |
| OKLCH | oklch(39.5% 0.193 272) |
| XYZ | xyz(9.2800, 5.3855, 39.0706) |
| Luminance | 0.0539 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.13
Indigo Blue
#3A18B1
ΔE00 4.85
True Blue
#010FCC
ΔE00 6.17
Royal
#0C1793
ΔE00 6.36
Blue Blue
#2242C7
ΔE00 6.55
Ocean Blue
#4F42B5
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2EAB #ABA72A
analogous
#2A6EAB #2A2EAB #672AAB
triadic
#2A2EAB #AB2A2E #2EAB2A
tetradic
#2A2EAB #AB2A6E #ABA72A #2AAB67
square
#2A2EAB #AB2A6E #ABA72A #2AAB67
split-complementary
#2A2EAB #AB672A #6EAB2A
monochromatic
#121449 #1E217A #2A2EAB #4246D1 #7376DD
Accessibility & contrast
On white
10.11
#2A2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#2A2EAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2EAB
10.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2EAB | 1.00 | 10.11 | 2.08 | 10.11 |
| #FFFFFF | 10.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #2a2eab; /* rgb */ color: rgb(42, 46, 171); /* oklch */ color: oklch(39.5% 0.193 272.0);
Tailwind
colors: {
custom: {
50: '#7968c5',
500: '#2a2eab',
950: '#000000',
},
}SCSS
$custom: #2a2eab; $custom-light: #7968c5; $custom-dark: #000000;
JSON
{
"hex": "#2a2eab",
"rgb": {
"r": 42,
"g": 46,
"b": 171
},
"hsl": {
"h": 238.14,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.39503,
"c": 0.19286,
"h": 272
},
"luminance": 0.05387
}Semantic roles & 50–950 ramp
primary
#2A2EAB
secondary
#C4C16D
accent
#DF44E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82