#2F5040#2F5040

#2F5040 is a dark, muted teal. Relative luminance 0.067; OKLCH L 40.1% C 0.048 H 162.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2F5040
RGBrgb(47, 80, 64)
HSLhsl(151, 26%, 25%)
HSVhsv(151, 41%, 31%)
CMYKcmyk(41.3%, 0%, 20%, 68.6%)
CIE-LABlab(31.14, -16.27, 5.67)
CIE-LCHlch(31.14, 17.23, 160.80°)
OKLaboklab(40.05% -0.0454 0.0146)
OKLCHoklch(40.05% 0.048 162.2)
XYZxyz(4.9660, 6.7115, 5.8833)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5040 #502F3F
analogous
#2F5030 #2F5040 #2F5050
triadic
#2F5040 #402F50 #50402F
tetradic
#2F5040 #302F50 #502F3F #50502F
square
#2F5040 #302F50 #502F3F #50502F
split-complementary
#2F5040 #502F50 #50302F
monochromatic
#0B130F #182921 #2F5040 #46775F #5C9D7E

Accessibility & contrast

On white

8.97
#2F5040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F5040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5040
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5040#FFFFFF#000000##FFFFFF
##2F50401.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4C3F
Deuteranopia (green-blind)
#4A4841
Tritanopia (blue-blind)
#27504B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f5040;
/* rgb */ color: rgb(47, 80, 64);
/* oklch */ color: oklch(40.1% 0.048 162.2);
Tailwind
colors: {
  custom: {
    50: '#698174',
    500: '#2f5040',
    950: '#000000',
  },
}
SCSS
$custom: #2f5040;
$custom-light: #698174;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5040",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 64
  },
  "hsl": {
    "h": 150.909,
    "s": 25.984,
    "l": 24.902
  },
  "oklch": {
    "l": 0.40054,
    "c": 0.04766,
    "h": 162.2
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#2F5040
secondary
#815A6D
accent
#6592C2
background
#F6F7F7
surface
#EBEEED
border
#C6C9C8
text
#060A08
muted
#7A7C7B

Preview Lab

Preview with #2F5040

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

Preview Lab → · Contrast checker → · Palette generator →

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