#1F7786#1F7786

#1F7786 is a mid, moderate teal. Relative luminance 0.152; OKLCH L 52.6% C 0.082 H 211.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#1F7786
RGBrgb(31, 119, 134)
HSLhsl(189, 62%, 32%)
HSVhsv(189, 77%, 53%)
CMYKcmyk(76.9%, 11.2%, 0%, 47.5%)
CIE-LABlab(45.91, -19.83, -15.53)
CIE-LCHlch(45.91, 25.19, 218.05°)
OKLaboklab(52.6% -0.07 -0.0432)
OKLCHoklch(52.6% 0.082 211.7)
XYZxyz(11.4631, 15.2048, 24.8803)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7786 #862E1F
analogous
#1F8662 #1F7786 #1F4386
triadic
#1F7786 #861F77 #77861F
tetradic
#1F7786 #621F86 #862E1F #43861F
square
#1F7786 #621F86 #862E1F #43861F
split-complementary
#1F7786 #861F43 #86621F
monochromatic
#081F23 #144B54 #1F7786 #2AA3B8 #4AC1D5

Accessibility & contrast

On white

5.20
#1F7786 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#1F7786 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7786
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7786#FFFFFF#000000##FFFFFF
##1F77861.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B7387
Deuteranopia (green-blind)
#5D6886
Tritanopia (blue-blind)
#007D7C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7786;
/* rgb */ color: rgb(31, 119, 134);
/* oklch */ color: oklch(52.6% 0.082 211.7);
Tailwind
colors: {
  custom: {
    50: '#6c9ea9',
    500: '#1f7786',
    950: '#000000',
  },
}
SCSS
$custom: #1f7786;
$custom-light: #6c9ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7786",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 134
  },
  "hsl": {
    "h": 188.738,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52596,
    "c": 0.08225,
    "h": 211.7
  },
  "luminance": 0.15206
}

Semantic roles & 50–950 ramp

primary
#1F7786
secondary
#B85949
accent
#5A42E5
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E0F
muted
#7B7E7F

Preview Lab

Preview with #1F7786

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

Preview Lab → · Contrast checker → · Palette generator →

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