#2A7871#2A7871

#2A7871 is a mid, moderate teal. Relative luminance 0.151; OKLCH L 52.3% C 0.076 H 186.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2A7871
RGBrgb(42, 120, 113)
HSLhsl(175, 48%, 32%)
HSVhsv(175, 65%, 47%)
CMYKcmyk(65%, 0%, 5.8%, 52.9%)
CIE-LABlab(45.79, -25.30, -3.18)
CIE-LCHlch(45.79, 25.49, 187.16°)
OKLaboklab(52.34% -0.0754 -0.009)
OKLCHoklch(52.34% 0.076 186.8)
XYZxyz(10.6506, 15.1163, 17.9760)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7871 #782A31
analogous
#2A784A #2A7871 #2A5878
triadic
#2A7871 #712A78 #78712A
tetradic
#2A7871 #4A2A78 #782A31 #58782A
square
#2A7871 #4A2A78 #782A31 #58782A
split-complementary
#2A7871 #782A58 #784A2A
monochromatic
#0A1D1C #1A4B46 #2A7871 #3AA59C #58C5BB

Accessibility & contrast

On white

5.22
#2A7871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2A7871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7871
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7871#FFFFFF#000000##FFFFFF
##2A78711.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a7871;
/* rgb */ color: rgb(42, 120, 113);
/* oklch */ color: oklch(52.3% 0.076 186.8);
Tailwind
colors: {
  custom: {
    50: '#6e9f99',
    500: '#2a7871',
    950: '#000000',
  },
}
SCSS
$custom: #2a7871;
$custom-light: #6e9f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7871",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 113
  },
  "hsl": {
    "h": 174.615,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52338,
    "c": 0.07592,
    "h": 186.8
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#2A7871
secondary
#AA545C
accent
#505CD8
background
#F7F9F9
surface
#EDF2F2
border
#C8CCCC
text
#080E0E
muted
#7B7E7E

Preview Lab

Preview with #2A7871

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

Preview Lab → · Contrast checker → · Palette generator →

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