#2A417E#2A417E
#2A417E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.107 H 266.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2A417E |
|---|---|
| RGB | rgb(42, 65, 126) |
| HSL | hsl(224, 50%, 33%) |
| HSV | hsv(224, 67%, 49%) |
| CMYK | cmyk(66.7%, 48.4%, 0%, 50.6%) |
| CIE-LAB | lab(28.85, 12.31, -37.31) |
| CIE-LCH | lch(28.85, 39.29, 288.26°) |
| OKLab | oklab(39.09% -0.0073 -0.1067) |
| OKLCH | oklch(39.09% 0.107 266.1) |
| XYZ | xyz(6.6097, 5.7786, 20.5017) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.86
Darkish Blue
#014182
ΔE00 4.23
Twilight Blue
#0A437A
ΔE00 4.79
Marine Blue
#01386A
ΔE00 5.59
Prussian Blue
#004577
ΔE00 6.37
Cobalt
#0047AB
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A417E #7E672A
analogous
#2A6B7E #2A417E #3D2A7E
triadic
#2A417E #7E2A41 #417E2A
tetradic
#2A417E #7E2A6B #7E672A #2A7E3D
square
#2A417E #7E2A6B #7E672A #2A7E3D
split-complementary
#2A417E #7E3D2A #6B7E2A
monochromatic
#0B1222 #1B2950 #2A417E #3959AC #5A78C8
Accessibility & contrast
On white
9.74
#2A417E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#2A417E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A417E
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A417E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A417E | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#13407D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2a417e; /* rgb */ color: rgb(42, 65, 126); /* oklch */ color: oklch(39.1% 0.107 266.1);
Tailwind
colors: {
custom: {
50: '#6d75a4',
500: '#2a417e',
950: '#000000',
},
}SCSS
$custom: #2a417e; $custom-light: #6d75a4; $custom-dark: #000000;
JSON
{
"hex": "#2a417e",
"rgb": {
"r": 42,
"g": 65,
"b": 126
},
"hsl": {
"h": 223.571,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.39094,
"c": 0.10695,
"h": 266.1
},
"luminance": 0.05779
}Semantic roles & 50–950 ramp
primary
#2A417E
secondary
#AE9656
accent
#B34EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F