#2A787C#2A787C

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

Color values

HEX#2A787C
RGBrgb(42, 120, 124)
HSLhsl(183, 49%, 33%)
HSVhsv(183, 66%, 49%)
CMYKcmyk(66.1%, 3.2%, 0%, 51.4%)
CIE-LABlab(46.15, -21.97, -9.20)
CIE-LCHlch(46.15, 23.82, 202.71°)
OKLaboklab(52.74% -0.0702 -0.0255)
OKLCHoklch(52.74% 0.075 200)
XYZxyz(11.3078, 15.3792, 21.4374)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A787C #7C2E2A
analogous
#2A7C57 #2A787C #2A4F7C
triadic
#2A787C #7C2A78 #787C2A
tetradic
#2A787C #572A7C #7C2E2A #4F7C2A
square
#2A787C #572A7C #7C2E2A #4F7C2A
split-complementary
#2A787C #7C2A4F #7C572A
monochromatic
#0B2021 #1B4C4E #2A787C #39A4AA #59C2C7

Accessibility & contrast

On white

5.15
#2A787C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2A787C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A787C
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A787C#FFFFFF#000000##FFFFFF
##2A787C1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a787c;
/* rgb */ color: rgb(42, 120, 124);
/* oklch */ color: oklch(52.7% 0.075 200.0);
Tailwind
colors: {
  custom: {
    50: '#6f9fa1',
    500: '#2a787c',
    950: '#000000',
  },
}
SCSS
$custom: #2a787c;
$custom-light: #6f9fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a787c",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 124
  },
  "hsl": {
    "h": 182.927,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52744,
    "c": 0.07467,
    "h": 200
  },
  "luminance": 0.1538
}

Semantic roles & 50–950 ramp

primary
#2A787C
secondary
#AD5A55
accent
#564FD9
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0F
muted
#7B7E7E

Preview Lab

Preview with #2A787C

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

Preview Lab → · Contrast checker → · Palette generator →

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