#2A408E#2A408E
#2A408E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.132 H 268.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2A408E |
|---|---|
| RGB | rgb(42, 64, 142) |
| HSL | hsl(227, 54%, 36%) |
| HSV | hsv(227, 70%, 56%) |
| CMYK | cmyk(70.4%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.69, 19.11, -45.87) |
| CIE-LCH | lch(29.69, 49.70, 292.62°) |
| OKLab | oklab(40.1% -0.0045 -0.1319) |
| OKLCH | oklch(40.1% 0.132 268.1) |
| XYZ | xyz(7.6690, 6.1113, 26.3614) |
| Luminance | 0.0611 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.91
Blueberry
#464196
ΔE00 5.07
Cobalt
#0047AB
ΔE00 5.09
Darkish Blue
#014182
ΔE00 5.15
Sapphire (survey)
#2138AB
ΔE00 5.39
Twilight Blue
#0A437A
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A408E #8E782A
analogous
#2A728E #2A408E #462A8E
triadic
#2A408E #8E2A40 #408E2A
tetradic
#2A408E #8E2A72 #8E782A #2A8E46
square
#2A408E #8E2A72 #8E782A #2A8E46
split-complementary
#2A408E #8E462A #728E2A
monochromatic
#0E1530 #1C2B5F #2A408E #3855BD #627AD1
Accessibility & contrast
On white
9.45
#2A408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#2A408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A408E
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A408E | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#074B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a408e; /* rgb */ color: rgb(42, 64, 142); /* oklch */ color: oklch(40.1% 0.132 268.1);
Tailwind
colors: {
custom: {
50: '#7074b0',
500: '#2a408e',
950: '#000000',
},
}SCSS
$custom: #2a408e; $custom-light: #7074b0; $custom-dark: #000000;
JSON
{
"hex": "#2a408e",
"rgb": {
"r": 42,
"g": 64,
"b": 142
},
"hsl": {
"h": 226.8,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.40098,
"c": 0.13199,
"h": 268.1
},
"luminance": 0.06112
}Semantic roles & 50–950 ramp
primary
#2A408E
secondary
#B6A35D
accent
#BD4ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F