#2A7271#2A7271

#2A7271 is a mid, moderate teal. Relative luminance 0.137; OKLCH L 50.7% C 0.071 H 193.9°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#2A7271
RGBrgb(42, 114, 113)
HSLhsl(179, 46%, 31%)
HSVhsv(179, 63%, 45%)
CMYKcmyk(63.2%, 0%, 0.9%, 55.3%)
CIE-LABlab(43.83, -22.21, -6.09)
CIE-LCHlch(43.83, 23.03, 195.34°)
OKLaboklab(50.74% -0.0685 -0.0169)
OKLCHoklch(50.74% 0.071 193.9)
XYZxyz(9.9515, 13.7181, 17.7430)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7271 #722A2B
analogous
#2A724D #2A7271 #2A4F72
triadic
#2A7271 #712A72 #72712A
tetradic
#2A7271 #4D2A72 #722A2B #4F722A
square
#2A7271 #4D2A72 #722A2B #4F722A
split-complementary
#2A7271 #722A4F #724D2A
monochromatic
#091918 #1A4545 #2A7271 #3A9F9D #56C1BF

Accessibility & contrast

On white

5.61
#2A7271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#2A7271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7271
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7271#FFFFFF#000000##FFFFFF
##2A72711.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B6C71
Deuteranopia (green-blind)
#5F6472
Tritanopia (blue-blind)
#007571
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2a7271;
/* rgb */ color: rgb(42, 114, 113);
/* oklch */ color: oklch(50.7% 0.071 193.9);
Tailwind
colors: {
  custom: {
    50: '#6d9b99',
    500: '#2a7271',
    950: '#000000',
  },
}
SCSS
$custom: #2a7271;
$custom-light: #6d9b99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7271",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 113
  },
  "hsl": {
    "h": 179.167,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.50743,
    "c": 0.07054,
    "h": 193.9
  },
  "luminance": 0.13719
}

Semantic roles & 50–950 ramp

primary
#2A7271
secondary
#A45455
accent
#5254D6
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#080E0E
muted
#7A7E7E

Preview Lab

Preview with #2A7271

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

Preview Lab → · Contrast checker → · Palette generator →

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