#1F7998#1F7998

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

Color values

HEX#1F7998
RGBrgb(31, 121, 152)
HSLhsl(195, 66%, 36%)
HSVhsv(195, 80%, 60%)
CMYKcmyk(79.6%, 20.4%, 0%, 40.4%)
CIE-LABlab(47.28, -14.68, -24.07)
CIE-LCHlch(47.28, 28.20, 238.62°)
OKLaboklab(53.93% -0.0646 -0.0676)
OKLCHoklch(53.93% 0.093 226.3)
XYZxyz(13.0676, 16.2315, 32.1439)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7998 #983E1F
analogous
#1F987A #1F7998 #1F3C98
triadic
#1F7998 #981F79 #79981F
tetradic
#1F7998 #7A1F98 #983E1F #3C981F
square
#1F7998 #7A1F98 #983E1F #3C981F
split-complementary
#1F7998 #981F3C #987A1F
monochromatic
#0A2832 #155165 #1F7998 #29A1CB #55BADC

Accessibility & contrast

On white

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

On black

4.25
#1F7998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7998#FFFFFF#000000##FFFFFF
##1F79981.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#68779A
Deuteranopia (green-blind)
#586B98
Tritanopia (blue-blind)
#008283
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f7998;
/* rgb */ color: rgb(31, 121, 152);
/* oklch */ color: oklch(53.9% 0.093 226.3);
Tailwind
colors: {
  custom: {
    50: '#6f9fb6',
    500: '#1f7998',
    950: '#000000',
  },
}
SCSS
$custom: #1f7998;
$custom-light: #6f9fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7998",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 152
  },
  "hsl": {
    "h": 195.372,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.53931,
    "c": 0.09347,
    "h": 226.3
  },
  "luminance": 0.16233
}

Semantic roles & 50–950 ramp

primary
#1F7998
secondary
#C06F53
accent
#6A3FE9
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #1F7998

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

Preview Lab → · Contrast checker → · Palette generator →

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