#2F795C#2F795C

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

Color values

HEX#2F795C
RGBrgb(47, 121, 92)
HSLhsl(156, 44%, 33%)
HSVhsv(156, 61%, 47%)
CMYKcmyk(61.2%, 0%, 24%, 52.5%)
CIE-LABlab(45.70, -30.39, 9.17)
CIE-LCHlch(45.70, 31.74, 163.21°)
OKLaboklab(52.12% -0.0841 0.0235)
OKLCHoklch(52.12% 0.087 164.4)
XYZxyz(9.9405, 15.0508, 12.5044)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F795C #792F4C
analogous
#2F7937 #2F795C #2F7179
triadic
#2F795C #5C2F79 #795C2F
tetradic
#2F795C #372F79 #792F4C #71792F
square
#2F795C #372F79 #792F4C #71792F
split-complementary
#2F795C #792F71 #79372F
monochromatic
#0D2119 #1E4D3A #2F795C #40A57E #61C29C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F795C#FFFFFF#000000##FFFFFF
##2F795C1.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)
#77715A
Deuteranopia (green-blind)
#6C695E
Tritanopia (blue-blind)
#067971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f795c;
/* rgb */ color: rgb(47, 121, 92);
/* oklch */ color: oklch(52.1% 0.087 164.4);
Tailwind
colors: {
  custom: {
    50: '#6fa08a',
    500: '#2f795c',
    950: '#000000',
  },
}
SCSS
$custom: #2f795c;
$custom-light: #6fa08a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f795c",
  "rgb": {
    "r": 47,
    "g": 121,
    "b": 92
  },
  "hsl": {
    "h": 156.486,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52119,
    "c": 0.0873,
    "h": 164.4
  },
  "luminance": 0.15052
}

Semantic roles & 50–950 ramp

primary
#2F795C
secondary
#A85B7A
accent
#5486D4
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080F0B
muted
#7B7E7C

Preview Lab

Preview with #2F795C

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

Preview Lab → · Contrast checker → · Palette generator →

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