#1F7252#1F7252

#1F7252 is a mid, moderate teal. Relative luminance 0.129; OKLCH L 49.4% C 0.094 H 163.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#1F7252
RGBrgb(31, 114, 82)
HSLhsl(157, 57%, 28%)
HSVhsv(157, 73%, 45%)
CMYKcmyk(72.8%, 0%, 28.1%, 55.3%)
CIE-LABlab(42.66, -32.79, 10.76)
CIE-LCHlch(42.66, 34.51, 161.84°)
OKLaboklab(49.43% -0.0899 0.0274)
OKLCHoklch(49.43% 0.094 163)
XYZxyz(8.1045, 12.9342, 10.0504)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7252 #721F3F
analogous
#1F7228 #1F7252 #1F6872
triadic
#1F7252 #521F72 #72521F
tetradic
#1F7252 #281F72 #721F3F #68721F
square
#1F7252 #281F72 #721F3F #68721F
split-complementary
#1F7252 #721F68 #72281F
monochromatic
#071811 #12422F #1F7252 #2CA275 #40CB96

Accessibility & contrast

On white

5.85
#1F7252 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#1F7252 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7252
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7252#FFFFFF#000000##FFFFFF
##1F72521.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706950
Deuteranopia (green-blind)
#656254
Tritanopia (blue-blind)
#007269
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7252;
/* rgb */ color: rgb(31, 114, 82);
/* oklch */ color: oklch(49.4% 0.094 163.0);
Tailwind
colors: {
  custom: {
    50: '#679b82',
    500: '#1f7252',
    950: '#000000',
  },
}
SCSS
$custom: #1f7252;
$custom-light: #679b82;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7252",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 82
  },
  "hsl": {
    "h": 156.867,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49426,
    "c": 0.09404,
    "h": 163
  },
  "luminance": 0.12935
}

Semantic roles & 50–950 ramp

primary
#1F7252
secondary
#A6476C
accent
#4782E0
background
#F6F9F7
surface
#EBF2EE
border
#C6CCC9
text
#070E0A
muted
#7A7E7C

Preview Lab

Preview with #1F7252

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

Preview Lab → · Contrast checker → · Palette generator →

#1F7252 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva