#2A7EC9#2A7EC9

#2A7EC9 is a mid, vivid cyan. Relative luminance 0.196; OKLCH L 58.1% C 0.140 H 249.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#2A7EC9
RGBrgb(42, 126, 201)
HSLhsl(208, 65%, 48%)
HSVhsv(208, 79%, 79%)
CMYKcmyk(79.1%, 37.3%, 0%, 21.2%)
CIE-LABlab(51.41, 1.54, -45.93)
CIE-LCHlch(51.41, 45.95, 271.92°)
OKLaboklab(58.06% -0.0485 -0.131)
OKLCHoklch(58.06% 0.14 249.7)
XYZxyz(18.9543, 19.6287, 58.0368)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7EC9 #C9752A
analogous
#2AC9C4 #2A7EC9 #2A2EC9
triadic
#2A7EC9 #C92A7E #7EC92A
tetradic
#2A7EC9 #C42AC9 #C9752A #2EC92A
square
#2A7EC9 #C42AC9 #C9752A #2EC92A
split-complementary
#2A7EC9 #C92A2E #C9C42A
monochromatic
#153F64 #1F5E96 #2A7EC9 #559CDB #87B9E6

Accessibility & contrast

On white

4.26
#2A7EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#2A7EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A7EC9
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7EC9#FFFFFF#000000##000000
##2A7EC91.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B82CC
Deuteranopia (green-blind)
#4274C8
Tritanopia (blue-blind)
#00909A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2a7ec9;
/* rgb */ color: rgb(42, 126, 201);
/* oklch */ color: oklch(58.1% 0.140 249.7);
Tailwind
colors: {
  custom: {
    50: '#7ca2da',
    500: '#2a7ec9',
    950: '#000000',
  },
}
SCSS
$custom: #2a7ec9;
$custom-light: #7ca2da;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7ec9",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 201
  },
  "hsl": {
    "h": 208.302,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58058,
    "c": 0.13967,
    "h": 249.7
  },
  "luminance": 0.19631
}

Semantic roles & 50–950 ramp

primary
#2A7EC9
secondary
#D0A57F
accent
#8F3FE8
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0F15
muted
#7C7E83

Preview Lab

Preview with #2A7EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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