#1F7871#1F7871

#1F7871 is a mid, moderate teal. Relative luminance 0.149; OKLCH L 52.0% C 0.081 H 187.2°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#1F7871
RGBrgb(31, 120, 113)
HSLhsl(175, 59%, 30%)
HSVhsv(175, 74%, 47%)
CMYKcmyk(74.2%, 0%, 5.8%, 52.9%)
CIE-LABlab(45.52, -27.09, -3.61)
CIE-LCHlch(45.52, 27.33, 187.60°)
OKLaboklab(52.04% -0.0808 -0.0102)
OKLCHoklch(52.04% 0.081 187.2)
XYZxyz(10.2608, 14.9153, 17.9577)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7871 #781F26
analogous
#1F7845 #1F7871 #1F5378
triadic
#1F7871 #711F78 #78711F
tetradic
#1F7871 #451F78 #781F26 #53781F
square
#1F7871 #451F78 #781F26 #53781F
split-complementary
#1F7871 #781F53 #78451F
monochromatic
#061817 #124743 #1F7871 #2CA99F #43CEC3

Accessibility & contrast

On white

5.27
#1F7871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#1F7871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7871
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7871#FFFFFF#000000##FFFFFF
##1F78711.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#717171
Deuteranopia (green-blind)
#656872
Tritanopia (blue-blind)
#007B76
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7871;
/* rgb */ color: rgb(31, 120, 113);
/* oklch */ color: oklch(52.0% 0.081 187.2);
Tailwind
colors: {
  custom: {
    50: '#6a9f99',
    500: '#1f7871',
    950: '#000000',
  },
}
SCSS
$custom: #1f7871;
$custom-light: #6a9f99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7871",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 113
  },
  "hsl": {
    "h": 175.281,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52035,
    "c": 0.08145,
    "h": 187.2
  },
  "luminance": 0.14917
}

Semantic roles & 50–950 ramp

primary
#1F7871
secondary
#AB474F
accent
#4652E2
background
#F6F9F9
surface
#ECF2F2
border
#C7CCCC
text
#070E0E
muted
#7A7E7E

Preview Lab

Preview with #1F7871

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

Preview Lab → · Contrast checker → · Palette generator →

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