#1F7788#1F7788

#1F7788 is a mid, moderate teal. Relative luminance 0.153; OKLCH L 52.7% C 0.083 H 213.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#1F7788
RGBrgb(31, 119, 136)
HSLhsl(190, 63%, 33%)
HSVhsv(190, 77%, 53%)
CMYKcmyk(77.2%, 12.5%, 0%, 46.7%)
CIE-LABlab(45.99, -19.16, -16.60)
CIE-LCHlch(45.99, 25.34, 220.91°)
OKLaboklab(52.68% -0.0691 -0.0463)
OKLCHoklch(52.68% 0.083 213.8)
XYZxyz(11.6039, 15.2611, 25.6219)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7788 #88301F
analogous
#1F8864 #1F7788 #1F4388
triadic
#1F7788 #881F77 #77881F
tetradic
#1F7788 #641F88 #88301F #43881F
square
#1F7788 #641F88 #88301F #43881F
split-complementary
#1F7788 #881F43 #88641F
monochromatic
#082024 #144B56 #1F7788 #2AA3BA #4BC0D6

Accessibility & contrast

On white

5.18
#1F7788 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#1F7788 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7788
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7788#FFFFFF#000000##FFFFFF
##1F77881.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B7389
Deuteranopia (green-blind)
#5C6888
Tritanopia (blue-blind)
#007E7C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7788;
/* rgb */ color: rgb(31, 119, 136);
/* oklch */ color: oklch(52.7% 0.083 213.8);
Tailwind
colors: {
  custom: {
    50: '#6c9eaa',
    500: '#1f7788',
    950: '#000000',
  },
}
SCSS
$custom: #1f7788;
$custom-light: #6c9eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7788",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 136
  },
  "hsl": {
    "h": 189.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52682,
    "c": 0.08316,
    "h": 213.8
  },
  "luminance": 0.15263
}

Semantic roles & 50–950 ramp

primary
#1F7788
secondary
#B95C4A
accent
#5C42E6
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#080E10
muted
#7B7E7F

Preview Lab

Preview with #1F7788

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

Preview Lab → · Contrast checker → · Palette generator →

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