#1F7D97#1F7D97

#1F7D97 is a mid, moderate cyan. Relative luminance 0.172; OKLCH L 54.9% C 0.092 H 221.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#1F7D97
RGBrgb(31, 125, 151)
HSLhsl(193, 66%, 36%)
HSVhsv(193, 79%, 59%)
CMYKcmyk(79.5%, 17.2%, 0%, 40.8%)
CIE-LABlab(48.50, -17.25, -21.60)
CIE-LCHlch(48.50, 27.64, 231.38°)
OKLaboklab(54.9% -0.069 -0.0605)
OKLCHoklch(54.9% 0.092 221.2)
XYZxyz(13.4823, 17.1912, 31.8798)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D97 #97391F
analogous
#1F9775 #1F7D97 #1F4197
triadic
#1F7D97 #971F7D #7D971F
tetradic
#1F7D97 #751F97 #97391F #41971F
square
#1F7D97 #751F97 #97391F #41971F
split-complementary
#1F7D97 #971F41 #97751F
monochromatic
#0A2931 #155364 #1F7D97 #29A7CA #54BFDC

Accessibility & contrast

On white

4.73
#1F7D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#1F7D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D97
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D97#FFFFFF#000000##FFFFFF
##1F7D971.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E7A98
Deuteranopia (green-blind)
#5E6E97
Tritanopia (blue-blind)
#008585
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f7d97;
/* rgb */ color: rgb(31, 125, 151);
/* oklch */ color: oklch(54.9% 0.092 221.2);
Tailwind
colors: {
  custom: {
    50: '#6fa2b5',
    500: '#1f7d97',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d97;
$custom-light: #6fa2b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d97",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 151
  },
  "hsl": {
    "h": 193,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.54899,
    "c": 0.09173,
    "h": 221.2
  },
  "luminance": 0.17193
}

Semantic roles & 50–950 ramp

primary
#1F7D97
secondary
#BF6A52
accent
#643FE9
background
#F7FAFB
surface
#EDF3F6
border
#C8CDD0
text
#090F11
muted
#7B7F80

Preview Lab

Preview with #1F7D97

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

Preview Lab → · Contrast checker → · Palette generator →

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