#1F7797#1F7797

#1F7797 is a mid, moderate cyan. Relative luminance 0.157; OKLCH L 53.4% C 0.093 H 227.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#1F7797
RGBrgb(31, 119, 151)
HSLhsl(196, 66%, 36%)
HSVhsv(196, 79%, 59%)
CMYKcmyk(79.5%, 21.2%, 0%, 40.8%)
CIE-LABlab(46.60, -13.91, -24.53)
CIE-LCHlch(46.60, 28.20, 240.44°)
OKLaboklab(53.38% -0.063 -0.0689)
OKLCHoklch(53.38% 0.093 227.6)
XYZxyz(12.7455, 15.7178, 31.6342)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7797 #973F1F
analogous
#1F977B #1F7797 #1F3B97
triadic
#1F7797 #971F77 #77971F
tetradic
#1F7797 #7B1F97 #973F1F #3B971F
square
#1F7797 #7B1F97 #973F1F #3B971F
split-complementary
#1F7797 #971F3B #977B1F
monochromatic
#0A2731 #154F64 #1F7797 #299FCA #54B8DC

Accessibility & contrast

On white

5.07
#1F7797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#1F7797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7797
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7797#FFFFFF#000000##FFFFFF
##1F77971.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#667599
Deuteranopia (green-blind)
#566997
Tritanopia (blue-blind)
#008082
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7797;
/* rgb */ color: rgb(31, 119, 151);
/* oklch */ color: oklch(53.4% 0.093 227.6);
Tailwind
colors: {
  custom: {
    50: '#6f9eb5',
    500: '#1f7797',
    950: '#000000',
  },
}
SCSS
$custom: #1f7797;
$custom-light: #6f9eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7797",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 151
  },
  "hsl": {
    "h": 196,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.53377,
    "c": 0.09335,
    "h": 227.6
  },
  "luminance": 0.15719
}

Semantic roles & 50–950 ramp

primary
#1F7797
secondary
#BF6F52
accent
#6C3FE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#080E11
muted
#7B7E80

Preview Lab

Preview with #1F7797

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

Preview Lab → · Contrast checker → · Palette generator →

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