#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
RGBrgb(42, 126, 196)
HSLhsl(207, 65%, 47%)
HSVhsv(207, 79%, 77%)
CMYKcmyk(78.6%, 35.7%, 0%, 23.1%)
CIE-LABlab(51.15, -0.32, -43.50)
CIE-LCHlch(51.15, 43.50, 269.58°)
OKLaboklab(57.76% -0.0498 -0.1238)
OKLCHoklch(57.76% 0.134 248.1)
XYZxyz(18.3757, 19.3973, 54.9894)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

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
##2A7EC41.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.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

Preview Lab

Preview with #2A7EC4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A7EC4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva