#1F7C9D#1F7C9D

#1F7C9D is a mid, moderate cyan. Relative luminance 0.171; OKLCH L 54.9% C 0.097 H 227.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#1F7C9D
RGBrgb(31, 124, 157)
HSLhsl(196, 67%, 37%)
HSVhsv(196, 80%, 62%)
CMYKcmyk(80.3%, 21%, 0%, 38.4%)
CIE-LABlab(48.44, -14.59, -25.21)
CIE-LCHlch(48.44, 29.13, 239.95°)
OKLaboklab(54.93% -0.0656 -0.0708)
OKLCHoklch(54.93% 0.097 227.2)
XYZxyz(13.8560, 17.1392, 34.4697)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C9D #9D401F
analogous
#1F9D7F #1F7C9D #1F3D9D
triadic
#1F7C9D #9D1F7C #7C9D1F
tetradic
#1F7C9D #7F1F9D #9D401F #3D9D1F
square
#1F7C9D #7F1F9D #9D401F #3D9D1F
split-complementary
#1F7C9D #9D1F3D #9D7F1F
monochromatic
#0B2B37 #15546A #1F7C9D #29A4D0 #58BBDE

Accessibility & contrast

On white

4.74
#1F7C9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#1F7C9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7C9D
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7C9D#FFFFFF#000000##FFFFFF
##1F7C9D1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A7A9F
Deuteranopia (green-blind)
#5A6E9D
Tritanopia (blue-blind)
#008587
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f7c9d;
/* rgb */ color: rgb(31, 124, 157);
/* oklch */ color: oklch(54.9% 0.097 227.2);
Tailwind
colors: {
  custom: {
    50: '#70a2ba',
    500: '#1f7c9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c9d;
$custom-light: #70a2ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c9d",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 157
  },
  "hsl": {
    "h": 195.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.09656,
    "h": 227.2
  },
  "luminance": 0.17141
}

Semantic roles & 50–950 ramp

primary
#1F7C9D
secondary
#C27256
accent
#6B3EEA
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090F11
muted
#7B7E80

Preview Lab

Preview with #1F7C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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