#1F7197#1F7197

#1F7197 is a mid, moderate cyan. Relative luminance 0.143; OKLCH L 51.9% C 0.096 H 233.6°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#1F7197
RGBrgb(31, 113, 151)
HSLhsl(199, 66%, 36%)
HSVhsv(199, 79%, 59%)
CMYKcmyk(79.5%, 25.2%, 0%, 40.8%)
CIE-LABlab(44.71, -10.47, -27.47)
CIE-LCHlch(44.71, 29.40, 249.14°)
OKLaboklab(51.86% -0.057 -0.0774)
OKLCHoklch(51.86% 0.096 233.6)
XYZxyz(12.0539, 14.3345, 31.4037)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7197 #97451F
analogous
#1F9781 #1F7197 #1F3597
triadic
#1F7197 #971F71 #71971F
tetradic
#1F7197 #811F97 #97451F #35971F
square
#1F7197 #811F97 #97451F #35971F
split-complementary
#1F7197 #971F35 #97811F
monochromatic
#0A2531 #154B64 #1F7197 #2997CA #54B1DC

Accessibility & contrast

On white

5.43
#1F7197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#1F7197 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7197
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7197#FFFFFF#000000##FFFFFF
##1F71971.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E7099
Deuteranopia (green-blind)
#4E6596
Tritanopia (blue-blind)
#007B7E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7197;
/* rgb */ color: rgb(31, 113, 151);
/* oklch */ color: oklch(51.9% 0.096 233.6);
Tailwind
colors: {
  custom: {
    50: '#6e99b5',
    500: '#1f7197',
    950: '#000000',
  },
}
SCSS
$custom: #1f7197;
$custom-light: #6e99b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7197",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 151
  },
  "hsl": {
    "h": 199,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.51864,
    "c": 0.09616,
    "h": 233.6
  },
  "luminance": 0.14336
}

Semantic roles & 50–950 ramp

primary
#1F7197
secondary
#BF7552
accent
#753FE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#080E11
muted
#7B7E80

Preview Lab

Preview with #1F7197

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

Preview Lab → · Contrast checker → · Palette generator →

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