#2A408F#2A408F
#2A408F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.133 H 268.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2A408F |
|---|---|
| RGB | rgb(42, 64, 143) |
| HSL | hsl(227, 55%, 36%) |
| HSV | hsv(227, 71%, 56%) |
| CMYK | cmyk(70.6%, 55.2%, 0%, 43.9%) |
| CIE-LAB | lab(29.77, 19.50, -46.37) |
| CIE-LCH | lch(29.77, 50.30, 292.80°) |
| OKLab | oklab(40.18% -0.0044 -0.1334) |
| OKLCH | oklch(40.18% 0.133 268.1) |
| XYZ | xyz(7.7445, 6.1414, 26.7586) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.95
Blueberry
#464196
ΔE00 5.00
Cobalt
#0047AB
ΔE00 5.00
Darkish Blue
#014182
ΔE00 5.23
Sapphire (survey)
#2138AB
ΔE00 5.24
Darkslateblue
#483D8B
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A408F #8F792A
analogous
#2A738F #2A408F #472A8F
triadic
#2A408F #8F2A40 #408F2A
tetradic
#2A408F #8F2A73 #8F792A #2A8F47
square
#2A408F #8F2A73 #8F792A #2A8F47
split-complementary
#2A408F #8F472A #738F2A
monochromatic
#0E1630 #1C2B60 #2A408F #3855BE #627AD1
Accessibility & contrast
On white
9.42
#2A408F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2A408F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A408F
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A408F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A408F | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#044B92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a408f; /* rgb */ color: rgb(42, 64, 143); /* oklch */ color: oklch(40.2% 0.133 268.1);
Tailwind
colors: {
custom: {
50: '#7174b0',
500: '#2a408f',
950: '#000000',
},
}SCSS
$custom: #2a408f; $custom-light: #7174b0; $custom-dark: #000000;
JSON
{
"hex": "#2a408f",
"rgb": {
"r": 42,
"g": 64,
"b": 143
},
"hsl": {
"h": 226.931,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.40178,
"c": 0.13344,
"h": 268.1
},
"luminance": 0.06142
}Semantic roles & 50–950 ramp
primary
#2A408F
secondary
#B7A45E
accent
#BE4ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80