#2F795B#2F795B

#2F795B is a mid, moderate teal. Relative luminance 0.150; OKLCH L 52.1% C 0.088 H 163.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2F795B
RGBrgb(47, 121, 91)
HSLhsl(156, 44%, 33%)
HSVhsv(156, 61%, 47%)
CMYKcmyk(61.2%, 0%, 24.8%, 52.5%)
CIE-LABlab(45.68, -30.63, 9.73)
CIE-LCHlch(45.68, 32.14, 162.38°)
OKLaboklab(52.09% -0.0846 0.0249)
OKLCHoklch(52.09% 0.088 163.6)
XYZxyz(9.8970, 15.0334, 12.2757)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F795B #792F4D
analogous
#2F7936 #2F795B #2F7279
triadic
#2F795B #5B2F79 #795B2F
tetradic
#2F795B #362F79 #792F4D #72792F
square
#2F795B #362F79 #792F4D #72792F
split-complementary
#2F795B #792F72 #79362F
monochromatic
#0D2119 #1E4D3A #2F795B #40A57C #61C29A

Accessibility & contrast

On white

5.24
#2F795B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#2F795B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F795B
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F795B#FFFFFF#000000##FFFFFF
##2F795B1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#777159
Deuteranopia (green-blind)
#6C695D
Tritanopia (blue-blind)
#087971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f795b;
/* rgb */ color: rgb(47, 121, 91);
/* oklch */ color: oklch(52.1% 0.088 163.6);
Tailwind
colors: {
  custom: {
    50: '#6fa089',
    500: '#2f795b',
    950: '#000000',
  },
}
SCSS
$custom: #2f795b;
$custom-light: #6fa089;
$custom-dark: #000000;
JSON
{
  "hex": "#2f795b",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 91
  },
  "hsl": {
    "h": 155.676,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52091,
    "c": 0.08816,
    "h": 163.6
  },
  "luminance": 0.15034
}

Semantic roles & 50–950 ramp

primary
#2F795B
secondary
#A85B7B
accent
#5488D4
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080F0B
muted
#7B7E7C

Preview Lab

Preview with #2F795B

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

Preview Lab → · Contrast checker → · Palette generator →

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