#2F795F#2F795F

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

Color values

HEX#2F795F
RGBrgb(47, 121, 95)
HSLhsl(159, 44%, 33%)
HSVhsv(159, 61%, 47%)
CMYKcmyk(61.2%, 0%, 21.5%, 52.5%)
CIE-LABlab(45.78, -29.65, 7.50)
CIE-LCHlch(45.78, 30.59, 165.80°)
OKLaboklab(52.2% -0.0826 0.0192)
OKLCHoklch(52.2% 0.085 166.9)
XYZxyz(10.0742, 15.1043, 13.2088)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F795F #792F49
analogous
#2F793A #2F795F #2F6E79
triadic
#2F795F #5F2F79 #795F2F
tetradic
#2F795F #3A2F79 #792F49 #6E792F
square
#2F795F #3A2F79 #792F49 #6E792F
split-complementary
#2F795F #792F6E #793A2F
monochromatic
#0D211A #1E4D3C #2F795F #40A582 #61C2A0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F795F#FFFFFF#000000##FFFFFF
##2F795F1.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)
#76715E
Deuteranopia (green-blind)
#6C6961
Tritanopia (blue-blind)
#027972
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f795f;
/* rgb */ color: rgb(47, 121, 95);
/* oklch */ color: oklch(52.2% 0.085 166.9);
Tailwind
colors: {
  custom: {
    50: '#6fa08c',
    500: '#2f795f',
    950: '#000000',
  },
}
SCSS
$custom: #2f795f;
$custom-light: #6fa08c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f795f",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 95
  },
  "hsl": {
    "h": 158.919,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52202,
    "c": 0.08477,
    "h": 166.9
  },
  "luminance": 0.15105
}

Semantic roles & 50–950 ramp

primary
#2F795F
secondary
#A85B76
accent
#5481D4
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080F0C
muted
#7B7E7D

Preview Lab

Preview with #2F795F

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

Preview Lab → · Contrast checker → · Palette generator →

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