#2A797F#2A797F

#2A797F is a mid, moderate teal. Relative luminance 0.157; OKLCH L 53.1% C 0.076 H 202.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2A797F
RGBrgb(42, 121, 127)
HSLhsl(184, 50%, 33%)
HSVhsv(184, 67%, 50%)
CMYKcmyk(66.9%, 4.7%, 0%, 50.2%)
CIE-LABlab(46.58, -21.56, -10.34)
CIE-LCHlch(46.58, 23.91, 205.62°)
OKLaboklab(53.12% -0.0699 -0.0287)
OKLCHoklch(53.12% 0.076 202.3)
XYZxyz(11.6213, 15.6980, 22.4921)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A797F #7F302A
analogous
#2A7F5A #2A797F #2A4E7F
triadic
#2A797F #7F2A79 #797F2A
tetradic
#2A797F #5A2A7F #7F302A #4E7F2A
square
#2A797F #5A2A7F #7F302A #4E7F2A
split-complementary
#2A797F #7F2A4E #7F5A2A
monochromatic
#0C2123 #1B4D51 #2A797F #39A5AD #5BC1C9

Accessibility & contrast

On white

5.07
#2A797F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2A797F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A797F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A797F#FFFFFF#000000##FFFFFF
##2A797F1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70747F
Deuteranopia (green-blind)
#636A7F
Tritanopia (blue-blind)
#007E7B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a797f;
/* rgb */ color: rgb(42, 121, 127);
/* oklch */ color: oklch(53.1% 0.076 202.3);
Tailwind
colors: {
  custom: {
    50: '#6fa0a4',
    500: '#2a797f',
    950: '#000000',
  },
}
SCSS
$custom: #2a797f;
$custom-light: #6fa0a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a797f",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 127
  },
  "hsl": {
    "h": 184.235,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53123,
    "c": 0.07557,
    "h": 202.3
  },
  "luminance": 0.15699
}

Semantic roles & 50–950 ramp

primary
#2A797F
secondary
#AE5D57
accent
#584EDA
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #2A797F

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

Preview Lab → · Contrast checker → · Palette generator →

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