#2A787B#2A787B

#2A787B is a mid, moderate teal. Relative luminance 0.154; OKLCH L 52.7% C 0.075 H 198.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2A787B
RGBrgb(42, 120, 123)
HSLhsl(182, 49%, 32%)
HSVhsv(182, 66%, 48%)
CMYKcmyk(65.9%, 2.4%, 0%, 51.8%)
CIE-LABlab(46.12, -22.28, -8.65)
CIE-LCHlch(46.12, 23.90, 201.22°)
OKLaboklab(52.71% -0.0706 -0.024)
OKLCHoklch(52.71% 0.075 198.8)
XYZxyz(11.2449, 15.3540, 21.1060)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A787B #7B2D2A
analogous
#2A7B55 #2A787B #2A507B
triadic
#2A787B #7B2A78 #787B2A
tetradic
#2A787B #552A7B #7B2D2A #507B2A
square
#2A787B #552A7B #7B2D2A #507B2A
split-complementary
#2A787B #7B2A50 #7B552A
monochromatic
#0B1F20 #1A4B4D #2A787B #3AA5A9 #59C2C6

Accessibility & contrast

On white

5.16
#2A787B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2A787B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A787B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A787B#FFFFFF#000000##FFFFFF
##2A787B1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70737B
Deuteranopia (green-blind)
#63697B
Tritanopia (blue-blind)
#007C79
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a787b;
/* rgb */ color: rgb(42, 120, 123);
/* oklch */ color: oklch(52.7% 0.075 198.8);
Tailwind
colors: {
  custom: {
    50: '#6f9fa1',
    500: '#2a787b',
    950: '#000000',
  },
}
SCSS
$custom: #2a787b;
$custom-light: #6f9fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a787b",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 123
  },
  "hsl": {
    "h": 182.222,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52706,
    "c": 0.0746,
    "h": 198.8
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#2A787B
secondary
#AC5855
accent
#544FD9
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0E
muted
#7B7E7E

Preview Lab

Preview with #2A787B

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

Preview Lab → · Contrast checker → · Palette generator →

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