#1F7897#1F7897

#1F7897 is a mid, moderate cyan. Relative luminance 0.160; OKLCH L 53.6% C 0.093 H 226.5°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#1F7897
RGBrgb(31, 120, 151)
HSLhsl(196, 66%, 36%)
HSVhsv(196, 79%, 59%)
CMYKcmyk(79.5%, 20.5%, 0%, 40.8%)
CIE-LABlab(46.92, -14.48, -24.04)
CIE-LCHlch(46.92, 28.06, 238.94°)
OKLaboklab(53.63% -0.064 -0.0675)
OKLCHoklch(53.63% 0.093 226.5)
XYZxyz(12.8652, 15.9570, 31.6741)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7897 #973E1F
analogous
#1F977A #1F7897 #1F3C97
triadic
#1F7897 #971F78 #78971F
tetradic
#1F7897 #7A1F97 #973E1F #3C971F
square
#1F7897 #7A1F97 #973E1F #3C971F
split-complementary
#1F7897 #971F3C #977A1F
monochromatic
#0A2731 #155064 #1F7897 #29A0CA #54B9DC

Accessibility & contrast

On white

5.01
#1F7897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#1F7897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7897
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7897#FFFFFF#000000##FFFFFF
##1F78971.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#677699
Deuteranopia (green-blind)
#576A97
Tritanopia (blue-blind)
#008182
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f7897;
/* rgb */ color: rgb(31, 120, 151);
/* oklch */ color: oklch(53.6% 0.093 226.5);
Tailwind
colors: {
  custom: {
    50: '#6f9fb5',
    500: '#1f7897',
    950: '#000000',
  },
}
SCSS
$custom: #1f7897;
$custom-light: #6f9fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7897",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 151
  },
  "hsl": {
    "h": 195.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5363,
    "c": 0.09299,
    "h": 226.5
  },
  "luminance": 0.15959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F7897

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

Preview Lab → · Contrast checker → · Palette generator →

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