#2A7B9D#2A7B9D

#2A7B9D is a mid, moderate cyan. Relative luminance 0.171; OKLCH L 55.0% C 0.093 H 230.0°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A7B9D
RGBrgb(42, 123, 157)
HSLhsl(198, 58%, 39%)
HSVhsv(198, 73%, 62%)
CMYKcmyk(73.2%, 21.7%, 0%, 38.4%)
CIE-LABlab(48.37, -12.66, -25.29)
CIE-LCHlch(48.37, 28.28, 243.41°)
OKLaboklab(54.95% -0.0596 -0.071)
OKLCHoklch(54.95% 0.093 230)
XYZxyz(14.1212, 17.0909, 34.4464)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B9D #9D4C2A
analogous
#2A9D86 #2A7B9D #2A429D
triadic
#2A7B9D #9D2A7B #7B9D2A
tetradic
#2A7B9D #862A9D #9D4C2A #429D2A
square
#2A7B9D #862A9D #9D4C2A #429D2A
split-complementary
#2A7B9D #9D2A42 #9D862A
monochromatic
#102F3C #1D556D #2A7B9D #3AA0CA #6AB7D7

Accessibility & contrast

On white

4.75
#2A7B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2A7B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B9D
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B9D#FFFFFF#000000##FFFFFF
##2A7B9D1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A799F
Deuteranopia (green-blind)
#5A6E9D
Tritanopia (blue-blind)
#008486
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a7b9d;
/* rgb */ color: rgb(42, 123, 157);
/* oklch */ color: oklch(55.0% 0.093 230.0);
Tailwind
colors: {
  custom: {
    50: '#74a1ba',
    500: '#2a7b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b9d;
$custom-light: #74a1ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b9d",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 157
  },
  "hsl": {
    "h": 197.739,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.54953,
    "c": 0.09266,
    "h": 230
  },
  "luminance": 0.17092
}

Semantic roles & 50–950 ramp

primary
#2A7B9D
secondary
#BE7F65
accent
#7447E1
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090F11
muted
#7B7E80

Preview Lab

Preview with #2A7B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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