#2A4FC6#2A4FC6
#2A4FC6 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.190 H 266.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2A4FC6 |
|---|---|
| RGB | rgb(42, 79, 198) |
| HSL | hsl(226, 65%, 47%) |
| HSV | hsv(226, 79%, 78%) |
| CMYK | cmyk(78.8%, 60.1%, 0%, 22.4%) |
| CIE-LAB | lab(38.13, 30.37, -65.61) |
| CIE-LCH | lch(38.13, 72.30, 294.84°) |
| OKLab | oklab(47.8% -0.0133 -0.1897) |
| OKLCH | oklch(47.8% 0.19 266) |
| XYZ | xyz(13.9403, 10.1598, 54.6415) |
| Luminance | 0.1016 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.50
Blue Blue
#2242C7
ΔE00 3.95
Blue (survey)
#0343DF
ΔE00 4.54
Cobalt
#0047AB
ΔE00 5.15
Warm Blue
#4B57DB
ΔE00 5.34
Azul
#1D5DEC
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A4FC6 #C6A12A
analogous
#2A9DC6 #2A4FC6 #532AC6
triadic
#2A4FC6 #C62A4F #4FC62A
tetradic
#2A4FC6 #C62A9D #C6A12A #2AC653
square
#2A4FC6 #C62A9D #C6A12A #2AC653
split-complementary
#2A4FC6 #C6532A #9DC62A
monochromatic
#152761 #1F3B94 #2A4FC6 #5373DA #859CE5
Accessibility & contrast
On white
6.93
#2A4FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#2A4FC6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2A4FC6
6.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A4FC6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A4FC6 | 1.00 | 6.93 | 3.03 | 6.93 |
| #FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0053C4
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #2a4fc6; /* rgb */ color: rgb(42, 79, 198); /* oklch */ color: oklch(47.8% 0.190 266.0);
Tailwind
colors: {
custom: {
50: '#7d7fd8',
500: '#2a4fc6',
950: '#000000',
},
}SCSS
$custom: #2a4fc6; $custom-light: #7d7fd8; $custom-dark: #000000;
JSON
{
"hex": "#2a4fc6",
"rgb": {
"r": 42,
"g": 79,
"b": 198
},
"hsl": {
"h": 225.769,
"s": 65,
"l": 47.059
},
"oklch": {
"l": 0.47804,
"c": 0.19015,
"h": 266
},
"luminance": 0.10161
}Semantic roles & 50–950 ramp
primary
#2A4FC6
secondary
#CEBB7D
accent
#C040E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A15
muted
#7C7C83