#1F7888#1F7888

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

Color values

HEX#1F7888
RGBrgb(31, 120, 136)
HSLhsl(189, 63%, 33%)
HSVhsv(189, 77%, 53%)
CMYKcmyk(77.2%, 11.8%, 0%, 46.7%)
CIE-LABlab(46.31, -19.69, -16.10)
CIE-LCHlch(46.31, 25.44, 219.27°)
OKLaboklab(52.94% -0.0701 -0.0449)
OKLCHoklch(52.94% 0.083 212.6)
XYZxyz(11.7236, 15.5004, 25.6618)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7888 #882F1F
analogous
#1F8863 #1F7888 #1F4388
triadic
#1F7888 #881F78 #78881F
tetradic
#1F7888 #631F88 #882F1F #43881F
square
#1F7888 #631F88 #882F1F #43881F
split-complementary
#1F7888 #881F43 #88631F
monochromatic
#082024 #144C56 #1F7888 #2AA4BA #4BC1D6

Accessibility & contrast

On white

5.12
#1F7888 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#1F7888 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7888
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7888#FFFFFF#000000##FFFFFF
##1F78881.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7888;
/* rgb */ color: rgb(31, 120, 136);
/* oklch */ color: oklch(52.9% 0.083 212.6);
Tailwind
colors: {
  custom: {
    50: '#6d9faa',
    500: '#1f7888',
    950: '#000000',
  },
}
SCSS
$custom: #1f7888;
$custom-light: #6d9faa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7888",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 136
  },
  "hsl": {
    "h": 189.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52942,
    "c": 0.08327,
    "h": 212.6
  },
  "luminance": 0.15502
}

Semantic roles & 50–950 ramp

primary
#1F7888
secondary
#B95B4A
accent
#5B42E6
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #1F7888

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

Preview Lab → · Contrast checker → · Palette generator →

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