#2A408C#2A408C
#2A408C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.129 H 267.9°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #2A408C |
|---|---|
| RGB | rgb(42, 64, 140) |
| HSL | hsl(227, 54%, 36%) |
| HSV | hsv(227, 70%, 55%) |
| CMYK | cmyk(70%, 54.3%, 0%, 45.1%) |
| CIE-LAB | lab(29.54, 18.35, -44.88) |
| CIE-LCH | lch(29.54, 48.49, 292.23°) |
| OKLab | oklab(39.94% -0.0046 -0.129) |
| OKLCH | oklch(39.94% 0.129 267.9) |
| XYZ | xyz(7.5202, 6.0518, 25.5776) |
| Luminance | 0.0605 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.85
Darkish Blue
#014182
ΔE00 5.00
Blueberry
#464196
ΔE00 5.21
Cobalt
#0047AB
ΔE00 5.28
Sapphire (survey)
#2138AB
ΔE00 5.68
Twilight Blue
#0A437A
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A408C #8C762A
analogous
#2A718C #2A408C #452A8C
triadic
#2A408C #8C2A40 #408C2A
tetradic
#2A408C #8C2A71 #8C762A #2A8C45
square
#2A408C #8C2A71 #8C762A #2A8C45
split-complementary
#2A408C #8C452A #718C2A
monochromatic
#0E152E #1C2A5D #2A408C #3856BB #617AD0
Accessibility & contrast
On white
9.50
#2A408C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#2A408C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A408C
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A408C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A408C | 1.00 | 9.50 | 2.21 | 9.50 |
| #FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C4A8F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a408c; /* rgb */ color: rgb(42, 64, 140); /* oklch */ color: oklch(39.9% 0.129 267.9);
Tailwind
colors: {
custom: {
50: '#7074ae',
500: '#2a408c',
950: '#000000',
},
}SCSS
$custom: #2a408c; $custom-light: #7074ae; $custom-dark: #000000;
JSON
{
"hex": "#2a408c",
"rgb": {
"r": 42,
"g": 64,
"b": 140
},
"hsl": {
"h": 226.531,
"s": 53.846,
"l": 35.686
},
"oklch": {
"l": 0.39938,
"c": 0.12908,
"h": 267.9
},
"luminance": 0.06052
}Semantic roles & 50–950 ramp
primary
#2A408C
secondary
#B5A15C
accent
#BC4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F