#2A2DAB#2A2DAB
#2A2DAB is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.194 H 272.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2DAB |
|---|---|
| RGB | rgb(42, 45, 171) |
| HSL | hsl(239, 61%, 42%) |
| HSV | hsv(239, 75%, 67%) |
| CMYK | cmyk(75.4%, 73.7%, 0%, 32.9%) |
| CIE-LAB | lab(27.60, 42.00, -66.94) |
| CIE-LCH | lch(27.60, 79.03, 302.11°) |
| OKLab | oklab(39.35% 0.0071 -0.1937) |
| OKLCH | oklch(39.35% 0.194 272.1) |
| XYZ | xyz(9.2414, 5.3083, 39.0577) |
| Luminance | 0.0531 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.38
Indigo Blue
#3A18B1
ΔE00 4.61
True Blue
#010FCC
ΔE00 5.98
Royal
#0C1793
ΔE00 6.17
Cobalt Blue
#030AA7
ΔE00 6.55
Blue Blue
#2242C7
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2DAB #ABA82A
analogous
#2A6EAB #2A2DAB #682AAB
triadic
#2A2DAB #AB2A2D #2DAB2A
tetradic
#2A2DAB #AB2A6E #ABA82A #2AAB68
square
#2A2DAB #AB2A6E #ABA82A #2AAB68
split-complementary
#2A2DAB #AB682A #6EAB2A
monochromatic
#121349 #1E207A #2A2DAB #4245D1 #7375DD
Accessibility & contrast
On white
10.19
#2A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#2A2DAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2DAB
10.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2DAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2DAB | 1.00 | 10.19 | 2.06 | 10.19 |
| #FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a2dab; /* rgb */ color: rgb(42, 45, 171); /* oklch */ color: oklch(39.4% 0.194 272.1);
Tailwind
colors: {
custom: {
50: '#7967c5',
500: '#2a2dab',
950: '#000000',
},
}SCSS
$custom: #2a2dab; $custom-light: #7967c5; $custom-dark: #000000;
JSON
{
"hex": "#2a2dab",
"rgb": {
"r": 42,
"g": 45,
"b": 171
},
"hsl": {
"h": 238.605,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.39353,
"c": 0.19388,
"h": 272.1
},
"luminance": 0.05309
}Semantic roles & 50–950 ramp
primary
#2A2DAB
secondary
#C4C26D
accent
#E044E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82