#1F77A6#1F77A6

#1F77A6 is a mid, moderate cyan. Relative luminance 0.162; OKLCH L 54.1% C 0.108 H 237.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#1F77A6
RGBrgb(31, 119, 166)
HSLhsl(201, 69%, 39%)
HSVhsv(201, 81%, 65%)
CMYKcmyk(81.3%, 28.3%, 0%, 34.9%)
CIE-LABlab(47.28, -8.45, -32.27)
CIE-LCHlch(47.28, 33.36, 255.33°)
OKLaboklab(54.14% -0.0575 -0.0913)
OKLCHoklch(54.14% 0.108 237.8)
XYZxyz(14.0421, 16.2364, 38.4629)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F77A6 #A64E1F
analogous
#1FA691 #1F77A6 #1F33A6
triadic
#1F77A6 #A61F77 #77A61F
tetradic
#1F77A6 #911FA6 #A64E1F #33A61F
square
#1F77A6 #911FA6 #A64E1F #33A61F
split-complementary
#1F77A6 #A61F33 #A6911F
monochromatic
#0C2D3F #155272 #1F77A6 #2B9BD7 #5EB4E1

Accessibility & contrast

On white

4.94
#1F77A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F77A6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F77A6#FFFFFF#000000##FFFFFF
##1F77A61.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6077A8
Deuteranopia (green-blind)
#4E6BA5
Tritanopia (blue-blind)
#008387
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f77a6;
/* rgb */ color: rgb(31, 119, 166);
/* oklch */ color: oklch(54.1% 0.108 237.8);
Tailwind
colors: {
  custom: {
    50: '#719ec0',
    500: '#1f77a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f77a6;
$custom-light: #719ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f77a6",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 166
  },
  "hsl": {
    "h": 200.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.54144,
    "c": 0.10791,
    "h": 237.8
  },
  "luminance": 0.16238
}

Semantic roles & 50–950 ramp

primary
#1F77A6
secondary
#C5805B
accent
#793CEB
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #1F77A6

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

Preview Lab → · Contrast checker → · Palette generator →

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