#1F7887#1F7887

#1F7887 is a mid, moderate teal. Relative luminance 0.155; OKLCH L 52.9% C 0.083 H 211.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#1F7887
RGBrgb(31, 120, 135)
HSLhsl(189, 63%, 33%)
HSVhsv(189, 77%, 53%)
CMYKcmyk(77%, 11.1%, 0%, 47.1%)
CIE-LABlab(46.27, -20.03, -15.57)
CIE-LCHlch(46.27, 25.37, 217.85°)
OKLaboklab(52.9% -0.0706 -0.0434)
OKLCHoklch(52.9% 0.083 211.6)
XYZxyz(11.6528, 15.4721, 25.2892)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7887 #872E1F
analogous
#1F8762 #1F7887 #1F4487
triadic
#1F7887 #871F78 #78871F
tetradic
#1F7887 #621F87 #872E1F #44871F
square
#1F7887 #621F87 #872E1F #44871F
split-complementary
#1F7887 #871F44 #87621F
monochromatic
#082023 #144C55 #1F7887 #2AA4B9 #4BC2D6

Accessibility & contrast

On white

5.13
#1F7887 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#1F7887 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7887
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7887#FFFFFF#000000##FFFFFF
##1F78871.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C7488
Deuteranopia (green-blind)
#5E6987
Tritanopia (blue-blind)
#007E7D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7887;
/* rgb */ color: rgb(31, 120, 135);
/* oklch */ color: oklch(52.9% 0.083 211.6);
Tailwind
colors: {
  custom: {
    50: '#6c9faa',
    500: '#1f7887',
    950: '#000000',
  },
}
SCSS
$custom: #1f7887;
$custom-light: #6c9faa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7887",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 135
  },
  "hsl": {
    "h": 188.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52899,
    "c": 0.08284,
    "h": 211.6
  },
  "luminance": 0.15474
}

Semantic roles & 50–950 ramp

primary
#1F7887
secondary
#B85A4A
accent
#5A42E6
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #1F7887

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

Preview Lab → · Contrast checker → · Palette generator →

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