#2A4EA7#2A4EA7
#2A4EA7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.149 H 264.5°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4EA7 |
|---|---|
| RGB | rgb(42, 78, 167) |
| HSL | hsl(223, 60%, 41%) |
| HSV | hsv(223, 75%, 65%) |
| CMYK | cmyk(74.9%, 53.3%, 0%, 34.5%) |
| CIE-LAB | lab(35.46, 19.26, -51.69) |
| CIE-LCH | lch(35.46, 55.16, 290.43°) |
| OKLab | oklab(45.05% -0.0143 -0.1488) |
| OKLCH | oklch(45.05% 0.149 264.5) |
| XYZ | xyz(10.6518, 8.7299, 37.6754) |
| Luminance | 0.0873 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.79
Sapphire
#0F52BA
ΔE00 3.05
Cobalt (survey)
#1E488F
ΔE00 3.93
Dusk Blue
#26538D
ΔE00 4.72
Denim Blue
#3B5B92
ΔE00 5.32
Blue Blue
#2242C7
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4EA7 #A7832A
analogous
#2A8CA7 #2A4EA7 #442AA7
triadic
#2A4EA7 #A72A4E #4EA72A
tetradic
#2A4EA7 #A72A8C #A7832A #2AA744
square
#2A4EA7 #A72A8C #A7832A #2AA744
split-complementary
#2A4EA7 #A7442A #8CA72A
monochromatic
#112045 #1E3776 #2A4EA7 #3F69CF #708FDB
Accessibility & contrast
On white
7.65
#2A4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#2A4EA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4EA7
7.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4EA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4EA7 | 1.00 | 7.65 | 2.75 | 7.65 |
| #FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E59AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #2a4ea7; /* rgb */ color: rgb(42, 78, 167); /* oklch */ color: oklch(45.0% 0.149 264.5);
Tailwind
colors: {
custom: {
50: '#757fc2',
500: '#2a4ea7',
950: '#000000',
},
}SCSS
$custom: #2a4ea7; $custom-light: #757fc2; $custom-dark: #000000;
JSON
{
"hex": "#2a4ea7",
"rgb": {
"r": 42,
"g": 78,
"b": 167
},
"hsl": {
"h": 222.72,
"s": 59.809,
"l": 40.98
},
"oklch": {
"l": 0.45045,
"c": 0.14947,
"h": 264.5
},
"luminance": 0.08731
}Semantic roles & 50–950 ramp
primary
#2A4EA7
secondary
#C2A96B
accent
#B545E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81