#1F7798#1F7798

#1F7798 is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 53.4% C 0.094 H 228.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#1F7798
RGBrgb(31, 119, 152)
HSLhsl(196, 66%, 36%)
HSVhsv(196, 80%, 60%)
CMYKcmyk(79.6%, 21.7%, 0%, 40.4%)
CIE-LABlab(46.65, -13.55, -25.05)
CIE-LCHlch(46.65, 28.48, 241.58°)
OKLaboklab(53.43% -0.0626 -0.0704)
OKLCHoklch(53.43% 0.094 228.4)
XYZxyz(12.8271, 15.7504, 32.0638)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7798 #98401F
analogous
#1F987C #1F7798 #1F3A98
triadic
#1F7798 #981F77 #77981F
tetradic
#1F7798 #7C1F98 #98401F #3A981F
square
#1F7798 #7C1F98 #98401F #3A981F
split-complementary
#1F7798 #981F3A #987C1F
monochromatic
#0A2732 #154F65 #1F7798 #299FCB #55B7DC

Accessibility & contrast

On white

5.06
#1F7798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#1F7798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7798
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7798#FFFFFF#000000##FFFFFF
##1F77981.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66759A
Deuteranopia (green-blind)
#566A98
Tritanopia (blue-blind)
#008082
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f7798;
/* rgb */ color: rgb(31, 119, 152);
/* oklch */ color: oklch(53.4% 0.094 228.4);
Tailwind
colors: {
  custom: {
    50: '#6f9eb6',
    500: '#1f7798',
    950: '#000000',
  },
}
SCSS
$custom: #1f7798;
$custom-light: #6f9eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7798",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 152
  },
  "hsl": {
    "h": 196.364,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.53425,
    "c": 0.0942,
    "h": 228.4
  },
  "luminance": 0.15752
}

Semantic roles & 50–950 ramp

primary
#1F7798
secondary
#C07153
accent
#6D3FE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#080E11
muted
#7B7E80

Preview Lab

Preview with #1F7798

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

Preview Lab → · Contrast checker → · Palette generator →

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