#2A7CAC#2A7CAC

#2A7CAC is a mid, moderate cyan. Relative luminance 0.179; OKLCH L 56.0% C 0.107 H 239.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2A7CAC
RGBrgb(42, 124, 172)
HSLhsl(202, 61%, 42%)
HSVhsv(202, 76%, 67%)
CMYKcmyk(75.6%, 27.9%, 0%, 32.5%)
CIE-LABlab(49.36, -7.91, -32.50)
CIE-LCHlch(49.36, 33.45, 256.32°)
OKLaboklab(55.96% -0.0552 -0.0918)
OKLCHoklch(55.96% 0.107 239)
XYZxyz(15.6060, 17.8843, 41.6512)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7CAC #AC5A2A
analogous
#2AAC9B #2A7CAC #2A3BAC
triadic
#2A7CAC #AC2A7C #7CAC2A
tetradic
#2A7CAC #9B2AAC #AC5A2A #3BAC2A
square
#2A7CAC #9B2AAC #AC5A2A #3BAC2A
split-complementary
#2A7CAC #AC2A3B #AC9B2A
monochromatic
#12354A #1E597B #2A7CAC #429CD1 #73B6DD

Accessibility & contrast

On white

4.59
#2A7CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#2A7CAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7CAC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7CAC#FFFFFF#000000##FFFFFF
##2A7CAC1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#657CAE
Deuteranopia (green-blind)
#5470AB
Tritanopia (blue-blind)
#00888D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a7cac;
/* rgb */ color: rgb(42, 124, 172);
/* oklch */ color: oklch(56.0% 0.107 239.0);
Tailwind
colors: {
  custom: {
    50: '#76a1c5',
    500: '#2a7cac',
    950: '#000000',
  },
}
SCSS
$custom: #2a7cac;
$custom-light: #76a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7cac",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 172
  },
  "hsl": {
    "h": 202.154,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.55955,
    "c": 0.10715,
    "h": 239
  },
  "luminance": 0.17886
}

Semantic roles & 50–950 ramp

primary
#2A7CAC
secondary
#C48E6D
accent
#7F44E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0F13
muted
#7C7E82

Preview Lab

Preview with #2A7CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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