#1F7E8A#1F7E8A

#1F7E8A is a mid, moderate teal. Relative luminance 0.170; OKLCH L 54.6% C 0.085 H 207.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#1F7E8A
RGBrgb(31, 126, 138)
HSLhsl(187, 63%, 33%)
HSVhsv(187, 78%, 54%)
CMYKcmyk(77.5%, 8.7%, 0%, 45.9%)
CIE-LABlab(48.32, -22.21, -14.24)
CIE-LCHlch(48.32, 26.38, 212.65°)
OKLaboklab(54.59% -0.0755 -0.0396)
OKLCHoklch(54.59% 0.085 207.7)
XYZxyz(12.6114, 17.0465, 26.6655)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E8A #8A2B1F
analogous
#1F8A60 #1F7E8A #1F488A
triadic
#1F7E8A #8A1F7E #7E8A1F
tetradic
#1F7E8A #601F8A #8A2B1F #488A1F
square
#1F7E8A #601F8A #8A2B1F #488A1F
split-complementary
#1F7E8A #8A1F48 #8A601F
monochromatic
#092326 #145058 #1F7E8A #2AACBC #4CC7D7

Accessibility & contrast

On white

4.76
#1F7E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#1F7E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E8A
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E8A#FFFFFF#000000##FFFFFF
##1F7E8A1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72798B
Deuteranopia (green-blind)
#646E8A
Tritanopia (blue-blind)
#008482
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f7e8a;
/* rgb */ color: rgb(31, 126, 138);
/* oklch */ color: oklch(54.6% 0.085 207.7);
Tailwind
colors: {
  custom: {
    50: '#6ea3ac',
    500: '#1f7e8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e8a;
$custom-light: #6ea3ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e8a",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 138
  },
  "hsl": {
    "h": 186.729,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54586,
    "c": 0.08527,
    "h": 207.7
  },
  "luminance": 0.17048
}

Semantic roles & 50–950 ramp

primary
#1F7E8A
secondary
#BA584B
accent
#5441E6
background
#F7FAFA
surface
#EDF4F4
border
#C8CECE
text
#080F10
muted
#7B7F7F

Preview Lab

Preview with #1F7E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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