#2A4FAB#2A4FAB
#2A4FAB is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.154 H 264.5°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4FAB |
|---|---|
| RGB | rgb(42, 79, 171) |
| HSL | hsl(223, 61%, 42%) |
| HSV | hsv(223, 75%, 67%) |
| CMYK | cmyk(75.4%, 53.8%, 0%, 32.9%) |
| CIE-LAB | lab(36.03, 20.13, -53.15) |
| CIE-LCH | lch(36.03, 56.83, 290.74°) |
| OKLab | oklab(45.57% -0.0147 -0.1531) |
| OKLCH | oklch(45.57% 0.154 264.5) |
| XYZ | xyz(11.0989, 9.0233, 39.6769) |
| Luminance | 0.0902 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.58
Cobalt
#0047AB
ΔE00 2.99
Cobalt (survey)
#1E488F
ΔE00 4.48
Dusk Blue
#26538D
ΔE00 4.97
Denim Blue
#3B5B92
ΔE00 5.35
Blue Blue
#2242C7
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4FAB #AB862A
analogous
#2A90AB #2A4FAB #462AAB
triadic
#2A4FAB #AB2A4F #4FAB2A
tetradic
#2A4FAB #AB2A90 #AB862A #2AAB46
square
#2A4FAB #AB2A90 #AB862A #2AAB46
split-complementary
#2A4FAB #AB462A #90AB2A
monochromatic
#122249 #1E387A #2A4FAB #426BD1 #7391DD
Accessibility & contrast
On white
7.49
#2A4FAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#2A4FAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A4FAB
7.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4FAB | 1.00 | 7.49 | 2.80 | 7.49 |
| #FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#085BAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #2a4fab; /* rgb */ color: rgb(42, 79, 171); /* oklch */ color: oklch(45.6% 0.154 264.5);
Tailwind
colors: {
custom: {
50: '#767fc5',
500: '#2a4fab',
950: '#000000',
},
}SCSS
$custom: #2a4fab; $custom-light: #767fc5; $custom-dark: #000000;
JSON
{
"hex": "#2a4fab",
"rgb": {
"r": 42,
"g": 79,
"b": 171
},
"hsl": {
"h": 222.791,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.4557,
"c": 0.15377,
"h": 264.5
},
"luminance": 0.09024
}Semantic roles & 50–950 ramp
primary
#2A4FAB
secondary
#C4AB6D
accent
#B644E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82