#1F77A8#1F77A8

#1F77A8 is a mid, moderate cyan. Relative luminance 0.163; OKLCH L 54.3% C 0.110 H 238.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#1F77A8
RGBrgb(31, 119, 168)
HSLhsl(201, 69%, 39%)
HSVhsv(201, 82%, 66%)
CMYKcmyk(81.5%, 29.2%, 0%, 34.1%)
CIE-LABlab(47.38, -7.71, -33.29)
CIE-LCHlch(47.38, 34.17, 256.96°)
OKLaboklab(54.25% -0.0569 -0.0942)
OKLCHoklch(54.25% 0.11 238.9)
XYZxyz(14.2270, 16.3104, 39.4366)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F77A8 #A8501F
analogous
#1FA895 #1F77A8 #1F33A8
triadic
#1F77A8 #A81F77 #77A81F
tetradic
#1F77A8 #951FA8 #A8501F #33A81F
square
#1F77A8 #951FA8 #A8501F #33A81F
split-complementary
#1F77A8 #A81F33 #A8951F
monochromatic
#0C2E41 #155274 #1F77A8 #2C9BD8 #60B3E2

Accessibility & contrast

On white

4.93
#1F77A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#1F77A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F77A8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F77A8#FFFFFF#000000##FFFFFF
##1F77A81.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6077AA
Deuteranopia (green-blind)
#4D6BA7
Tritanopia (blue-blind)
#008388
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f77a8;
/* rgb */ color: rgb(31, 119, 168);
/* oklch */ color: oklch(54.3% 0.110 238.9);
Tailwind
colors: {
  custom: {
    50: '#729ec2',
    500: '#1f77a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f77a8;
$custom-light: #729ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f77a8",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 168
  },
  "hsl": {
    "h": 201.46,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.54252,
    "c": 0.11007,
    "h": 238.9
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#1F77A8
secondary
#C6825D
accent
#7B3CEC
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #1F77A8

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

Preview Lab → · Contrast checker → · Palette generator →

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