#2A4FAF#2A4FAF
#2A4FAF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.159 H 264.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4FAF |
|---|---|
| RGB | rgb(42, 79, 175) |
| HSL | hsl(223, 61%, 43%) |
| HSV | hsv(223, 76%, 69%) |
| CMYK | cmyk(76%, 54.9%, 0%, 31.4%) |
| CIE-LAB | lab(36.33, 21.66, -55.04) |
| CIE-LCH | lch(36.33, 59.15, 291.48°) |
| OKLab | oklab(45.89% -0.0144 -0.1586) |
| OKLCH | oklch(45.89% 0.159 264.8) |
| XYZ | xyz(11.4860, 9.1781, 41.7153) |
| Luminance | 0.0918 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.40
Cobalt
#0047AB
ΔE00 3.11
Cobalt (survey)
#1E488F
ΔE00 4.99
Dusk Blue
#26538D
ΔE00 5.45
Blue Blue
#2242C7
ΔE00 5.56
Denim Blue
#3B5B92
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4FAF #AF8A2A
analogous
#2A92AF #2A4FAF #472AAF
triadic
#2A4FAF #AF2A4F #4FAF2A
tetradic
#2A4FAF #AF2A92 #AF8A2A #2AAF47
square
#2A4FAF #AF2A92 #AF8A2A #2AAF47
split-complementary
#2A4FAF #AF472A #92AF2A
monochromatic
#12224C #1E397E #2A4FAF #446CD2 #7593DE
Accessibility & contrast
On white
7.41
#2A4FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#2A4FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4FAF
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4FAF | 1.00 | 7.41 | 2.84 | 7.41 |
| #FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #2a4faf; /* rgb */ color: rgb(42, 79, 175); /* oklch */ color: oklch(45.9% 0.159 264.8);
Tailwind
colors: {
custom: {
50: '#777fc8',
500: '#2a4faf',
950: '#000000',
},
}SCSS
$custom: #2a4faf; $custom-light: #777fc8; $custom-dark: #000000;
JSON
{
"hex": "#2a4faf",
"rgb": {
"r": 42,
"g": 79,
"b": 175
},
"hsl": {
"h": 223.308,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.45888,
"c": 0.15929,
"h": 264.8
},
"luminance": 0.09179
}Semantic roles & 50–950 ramp
primary
#2A4FAF
secondary
#C6AE6F
accent
#B843E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82