#1F7997#1F7997

#1F7997 is a mid, moderate cyan. Relative luminance 0.162; OKLCH L 53.9% C 0.093 H 225.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#1F7997
RGBrgb(31, 121, 151)
HSLhsl(195, 66%, 36%)
HSVhsv(195, 79%, 59%)
CMYKcmyk(79.5%, 19.9%, 0%, 40.8%)
CIE-LABlab(47.23, -15.04, -23.55)
CIE-LCHlch(47.23, 27.94, 237.44°)
OKLaboklab(53.88% -0.065 -0.0661)
OKLCHoklch(53.88% 0.093 225.5)
XYZxyz(12.9860, 16.1988, 31.7144)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7997 #973D1F
analogous
#1F9779 #1F7997 #1F3D97
triadic
#1F7997 #971F79 #79971F
tetradic
#1F7997 #791F97 #973D1F #3D971F
square
#1F7997 #791F97 #973D1F #3D971F
split-complementary
#1F7997 #971F3D #97791F
monochromatic
#0A2831 #155064 #1F7997 #29A2CA #54BADC

Accessibility & contrast

On white

4.95
#1F7997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#1F7997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7997
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7997#FFFFFF#000000##FFFFFF
##1F79971.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#697699
Deuteranopia (green-blind)
#596B97
Tritanopia (blue-blind)
#008283
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f7997;
/* rgb */ color: rgb(31, 121, 151);
/* oklch */ color: oklch(53.9% 0.093 225.5);
Tailwind
colors: {
  custom: {
    50: '#6f9fb5',
    500: '#1f7997',
    950: '#000000',
  },
}
SCSS
$custom: #1f7997;
$custom-light: #6f9fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7997",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 151
  },
  "hsl": {
    "h": 195,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.53883,
    "c": 0.09267,
    "h": 225.5
  },
  "luminance": 0.162
}

Semantic roles & 50–950 ramp

primary
#1F7997
secondary
#BF6E52
accent
#693FE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#080E11
muted
#7B7E80

Preview Lab

Preview with #1F7997

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

Preview Lab → · Contrast checker → · Palette generator →

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