#2C7871#2C7871

#2C7871 is a mid, moderate teal. Relative luminance 0.152; OKLCH L 52.4% C 0.075 H 186.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2C7871
RGBrgb(44, 120, 113)
HSLhsl(174, 46%, 32%)
HSVhsv(174, 63%, 47%)
CMYKcmyk(63.3%, 0%, 5.8%, 52.9%)
CIE-LABlab(45.85, -24.92, -3.08)
CIE-LCHlch(45.85, 25.11, 187.06°)
OKLaboklab(52.4% -0.0742 -0.0087)
OKLCHoklch(52.4% 0.075 186.7)
XYZxyz(10.7345, 15.1595, 17.9799)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7871 #782C33
analogous
#2C784B #2C7871 #2C5978
triadic
#2C7871 #712C78 #78712C
tetradic
#2C7871 #4B2C78 #782C33 #59782C
square
#2C7871 #4B2C78 #782C33 #59782C
split-complementary
#2C7871 #782C59 #784B2C
monochromatic
#0B1E1D #1C4B47 #2C7871 #3CA59B #5BC3B9

Accessibility & contrast

On white

5.21
#2C7871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2C7871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7871
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7871#FFFFFF#000000##FFFFFF
##2C78711.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#727271
Deuteranopia (green-blind)
#666972
Tritanopia (blue-blind)
#007B76
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2c7871;
/* rgb */ color: rgb(44, 120, 113);
/* oklch */ color: oklch(52.4% 0.075 186.7);
Tailwind
colors: {
  custom: {
    50: '#6f9f99',
    500: '#2c7871',
    950: '#000000',
  },
}
SCSS
$custom: #2c7871;
$custom-light: #6f9f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7871",
  "rgb": {
    "r": 44,
    "g": 120,
    "b": 113
  },
  "hsl": {
    "h": 174.474,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52402,
    "c": 0.07475,
    "h": 186.7
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#2C7871
secondary
#A9575E
accent
#525ED6
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0E
muted
#7B7E7E

Preview Lab

Preview with #2C7871

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

Preview Lab → · Contrast checker → · Palette generator →

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