#2A40A3#2A40A3
#2A40A3 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.162 H 268.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2A40A3 |
|---|---|
| RGB | rgb(42, 64, 163) |
| HSL | hsl(229, 59%, 40%) |
| HSV | hsv(229, 74%, 64%) |
| CMYK | cmyk(74.2%, 60.7%, 0%, 36.1%) |
| CIE-LAB | lab(31.35, 27.09, -55.96) |
| CIE-LCH | lch(31.35, 62.17, 295.83°) |
| OKLab | oklab(41.86% -0.0036 -0.1616) |
| OKLCH | oklch(41.86% 0.162 268.7) |
| XYZ | xyz(9.3968, 6.8024, 35.4610) |
| Luminance | 0.0680 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.78
Cobalt
#0047AB
ΔE00 4.08
Blueberry
#464196
ΔE00 4.72
Blue Blue
#2242C7
ΔE00 4.85
Cobalt (survey)
#1E488F
ΔE00 5.49
Ocean Blue
#4F42B5
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A40A3 #A38D2A
analogous
#2A7CA3 #2A40A3 #512AA3
triadic
#2A40A3 #A32A40 #40A32A
tetradic
#2A40A3 #A32A7C #A38D2A #2AA351
square
#2A40A3 #A32A7C #A38D2A #2AA351
split-complementary
#2A40A3 #A3512A #7CA32A
monochromatic
#111A42 #1D2D72 #2A40A3 #3D57CD #6E81DA
Accessibility & contrast
On white
8.90
#2A40A3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2A40A3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A40A3
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A40A3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A40A3 | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2a40a3; /* rgb */ color: rgb(42, 64, 163); /* oklch */ color: oklch(41.9% 0.162 268.7);
Tailwind
colors: {
custom: {
50: '#7574bf',
500: '#2a40a3',
950: '#000000',
},
}SCSS
$custom: #2a40a3; $custom-light: #7574bf; $custom-dark: #000000;
JSON
{
"hex": "#2a40a3",
"rgb": {
"r": 42,
"g": 64,
"b": 163
},
"hsl": {
"h": 229.091,
"s": 59.024,
"l": 40.196
},
"oklch": {
"l": 0.41864,
"c": 0.1616,
"h": 268.7
},
"luminance": 0.06803
}Semantic roles & 50–950 ramp
primary
#2A40A3
secondary
#C0B068
accent
#C646E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81