#1F7255#1F7255

#1F7255 is a mid, moderate teal. Relative luminance 0.130; OKLCH L 49.5% C 0.091 H 165.3°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#1F7255
RGBrgb(31, 114, 85)
HSLhsl(159, 57%, 28%)
HSVhsv(159, 73%, 45%)
CMYKcmyk(72.8%, 0%, 25.4%, 55.3%)
CIE-LABlab(42.73, -32.04, 9.07)
CIE-LCHlch(42.73, 33.30, 164.19°)
OKLaboklab(49.51% -0.0884 0.0232)
OKLCHoklch(49.51% 0.091 165.3)
XYZxyz(8.2212, 12.9809, 10.6649)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7255 #721F3C
analogous
#1F722B #1F7255 #1F6572
triadic
#1F7255 #551F72 #72551F
tetradic
#1F7255 #2B1F72 #721F3C #65721F
square
#1F7255 #2B1F72 #721F3C #65721F
split-complementary
#1F7255 #721F65 #722B1F
monochromatic
#071812 #124231 #1F7255 #2CA279 #40CB9B

Accessibility & contrast

On white

5.84
#1F7255 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#1F7255 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7255
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7255#FFFFFF#000000##FFFFFF
##1F72551.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706A53
Deuteranopia (green-blind)
#656257
Tritanopia (blue-blind)
#00726A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7255;
/* rgb */ color: rgb(31, 114, 85);
/* oklch */ color: oklch(49.5% 0.091 165.3);
Tailwind
colors: {
  custom: {
    50: '#679b85',
    500: '#1f7255',
    950: '#000000',
  },
}
SCSS
$custom: #1f7255;
$custom-light: #679b85;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7255",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 85
  },
  "hsl": {
    "h": 159.036,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49507,
    "c": 0.09138,
    "h": 165.3
  },
  "luminance": 0.12982
}

Semantic roles & 50–950 ramp

primary
#1F7255
secondary
#A64768
accent
#477DE0
background
#F6F9F8
surface
#EBF2EF
border
#C6CCCA
text
#070E0B
muted
#7A7E7C

Preview Lab

Preview with #1F7255

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

Preview Lab → · Contrast checker → · Palette generator →

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