#2A42AB#2A42AB
#2A42AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.170 H 268.3°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2A42AB |
|---|---|
| RGB | rgb(42, 66, 171) |
| HSL | hsl(229, 61%, 42%) |
| HSV | hsv(229, 75%, 67%) |
| CMYK | cmyk(75.4%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.54, 28.77, -58.82) |
| CIE-LCH | lch(32.54, 65.48, 296.06°) |
| OKLab | oklab(42.96% -0.0051 -0.1699) |
| OKLCH | oklch(42.96% 0.17 268.3) |
| XYZ | xyz(10.2512, 7.3278, 39.3943) |
| Luminance | 0.0733 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.98
Blue Blue
#2242C7
ΔE00 3.73
Cobalt
#0047AB
ΔE00 3.75
Blueberry
#464196
ΔE00 5.25
Ocean Blue
#4F42B5
ΔE00 5.54
Cobalt (survey)
#1E488F
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A42AB #AB932A
analogous
#2A83AB #2A42AB #532AAB
triadic
#2A42AB #AB2A42 #42AB2A
tetradic
#2A42AB #AB2A83 #AB932A #2AAB53
square
#2A42AB #AB2A83 #AB932A #2AAB53
split-complementary
#2A42AB #AB532A #83AB2A
monochromatic
#121C49 #1E2F7A #2A42AB #425CD1 #7387DD
Accessibility & contrast
On white
8.52
#2A42AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2A42AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A42AB
8.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A42AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A42AB | 1.00 | 8.52 | 2.47 | 8.52 |
| #FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2a42ab; /* rgb */ color: rgb(42, 66, 171); /* oklch */ color: oklch(43.0% 0.170 268.3);
Tailwind
colors: {
custom: {
50: '#7776c5',
500: '#2a42ab',
950: '#000000',
},
}SCSS
$custom: #2a42ab; $custom-light: #7776c5; $custom-dark: #000000;
JSON
{
"hex": "#2a42ab",
"rgb": {
"r": 42,
"g": 66,
"b": 171
},
"hsl": {
"h": 228.837,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.42955,
"c": 0.17001,
"h": 268.3
},
"luminance": 0.07329
}Semantic roles & 50–950 ramp
primary
#2A42AB
secondary
#C4B46D
accent
#C644E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82