#2A7AAB#2A7AAB

#2A7AAB is a mid, moderate cyan. Relative luminance 0.174; OKLCH L 55.4% C 0.107 H 240.1°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2A7AAB
RGBrgb(42, 122, 171)
HSLhsl(203, 61%, 42%)
HSVhsv(203, 75%, 67%)
CMYKcmyk(75.4%, 28.7%, 0%, 32.9%)
CIE-LABlab(48.70, -7.10, -32.95)
CIE-LCHlch(48.70, 33.71, 257.84°)
OKLaboklab(55.42% -0.0536 -0.0931)
OKLCHoklch(55.42% 0.107 240.1)
XYZxyz(15.2622, 17.3498, 41.0647)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7AAB #AB5B2A
analogous
#2AAB9C #2A7AAB #2A3AAB
triadic
#2A7AAB #AB2A7A #7AAB2A
tetradic
#2A7AAB #9C2AAB #AB5B2A #3AAB2A
square
#2A7AAB #9C2AAB #AB5B2A #3AAB2A
split-complementary
#2A7AAB #AB2A3A #AB9C2A
monochromatic
#123449 #1E577A #2A7AAB #429AD1 #73B4DD

Accessibility & contrast

On white

4.70
#2A7AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2A7AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7AAB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7AAB#FFFFFF#000000##FFFFFF
##2A7AAB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#637AAD
Deuteranopia (green-blind)
#516EAA
Tritanopia (blue-blind)
#00868B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a7aab;
/* rgb */ color: rgb(42, 122, 171);
/* oklch */ color: oklch(55.4% 0.107 240.1);
Tailwind
colors: {
  custom: {
    50: '#76a0c4',
    500: '#2a7aab',
    950: '#000000',
  },
}
SCSS
$custom: #2a7aab;
$custom-light: #76a0c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7aab",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 171
  },
  "hsl": {
    "h": 202.791,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.55418,
    "c": 0.10747,
    "h": 240.1
  },
  "luminance": 0.17352
}

Semantic roles & 50–950 ramp

primary
#2A7AAB
secondary
#C48E6D
accent
#8144E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2A7AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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