#1F7898#1F7898

#1F7898 is a mid, moderate cyan. Relative luminance 0.160; OKLCH L 53.7% C 0.094 H 227.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#1F7898
RGBrgb(31, 120, 152)
HSLhsl(196, 66%, 36%)
HSVhsv(196, 80%, 60%)
CMYKcmyk(79.6%, 21.1%, 0%, 40.4%)
CIE-LABlab(46.96, -14.12, -24.56)
CIE-LCHlch(46.96, 28.33, 240.11°)
OKLaboklab(53.68% -0.0636 -0.069)
OKLCHoklch(53.68% 0.094 227.3)
XYZxyz(12.9467, 15.9897, 32.1036)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7898 #983F1F
analogous
#1F987B #1F7898 #1F3B98
triadic
#1F7898 #981F78 #78981F
tetradic
#1F7898 #7B1F98 #983F1F #3B981F
square
#1F7898 #7B1F98 #983F1F #3B981F
split-complementary
#1F7898 #981F3B #987B1F
monochromatic
#0A2832 #155065 #1F7898 #29A0CB #55B9DC

Accessibility & contrast

On white

5.00
#1F7898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#1F7898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7898
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7898#FFFFFF#000000##FFFFFF
##1F78981.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#67769A
Deuteranopia (green-blind)
#576A98
Tritanopia (blue-blind)
#008183
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f7898;
/* rgb */ color: rgb(31, 120, 152);
/* oklch */ color: oklch(53.7% 0.094 227.3);
Tailwind
colors: {
  custom: {
    50: '#6f9fb6',
    500: '#1f7898',
    950: '#000000',
  },
}
SCSS
$custom: #1f7898;
$custom-light: #6f9fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7898",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 152
  },
  "hsl": {
    "h": 195.868,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.53678,
    "c": 0.09383,
    "h": 227.3
  },
  "luminance": 0.15991
}

Semantic roles & 50–950 ramp

primary
#1F7898
secondary
#C07053
accent
#6C3FE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#080E11
muted
#7B7E80

Preview Lab

Preview with #1F7898

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

Preview Lab → · Contrast checker → · Palette generator →

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