#2A7EC4#2A7EC4
#2A7EC4 is a mid, vivid cyan. Relative luminance 0.194; OKLCH L 57.8% C 0.134 H 248.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2A7EC4 |
|---|---|
| RGB | rgb(42, 126, 196) |
| HSL | hsl(207, 65%, 47%) |
| HSV | hsv(207, 79%, 77%) |
| CMYK | cmyk(78.6%, 35.7%, 0%, 23.1%) |
| CIE-LAB | lab(51.15, -0.32, -43.50) |
| CIE-LCH | lch(51.15, 43.50, 269.58°) |
| OKLab | oklab(57.76% -0.0498 -0.1238) |
| OKLCH | oklch(57.76% 0.134 248.1) |
| XYZ | xyz(18.3757, 19.3973, 54.9894) |
| Luminance | 0.1940 (WCAG relative) |
| Temperature | cool |
| Family | cyan |
Closest named colors
Steel Blue
#4682B4
ΔE00 2.88
Windows Blue
#3778BF
ΔE00 2.98
Bluish
#2976BB
ΔE00 3.09
Cerulean (survey)
#0485D1
ΔE00 3.12
Cool Blue
#4984B8
ΔE00 3.22
Water Blue
#0E87CC
ΔE00 3.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A7EC4 #C4702A
analogous
#2AC4BD #2A7EC4 #2A31C4
triadic
#2A7EC4 #C42A7E #7EC42A
tetradic
#2A7EC4 #BD2AC4 #C4702A #31C42A
square
#2A7EC4 #BD2AC4 #C4702A #31C42A
split-complementary
#2A7EC4 #C42A31 #C4BD2A
monochromatic
#143D5F #1F5E92 #2A7EC4 #519CDA #84B9E5
Accessibility & contrast
On white
4.30
#2A7EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#2A7EC4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2A7EC4
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A7EC4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2A7EC4 | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5D82C7
Deuteranopia (green-blind)
#4773C3
Tritanopia (blue-blind)
#008F98
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #2a7ec4; /* rgb */ color: rgb(42, 126, 196); /* oklch */ color: oklch(57.8% 0.134 248.1);
Tailwind
colors: {
custom: {
50: '#7ba3d6',
500: '#2a7ec4',
950: '#000000',
},
}SCSS
$custom: #2a7ec4; $custom-light: #7ba3d6; $custom-dark: #000000;
JSON
{
"hex": "#2a7ec4",
"rgb": {
"r": 42,
"g": 126,
"b": 196
},
"hsl": {
"h": 207.273,
"s": 64.706,
"l": 46.667
},
"oklch": {
"l": 0.57762,
"c": 0.1335,
"h": 248.1
},
"luminance": 0.19399
}Semantic roles & 50–950 ramp
primary
#2A7EC4
secondary
#CEA17C
accent
#8C40E8
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0F14
muted
#7C7E83