#1F77A7#1F77A7

#1F77A7 is a mid, moderate cyan. Relative luminance 0.163; OKLCH L 54.2% C 0.109 H 238.3°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#1F77A7
RGBrgb(31, 119, 167)
HSLhsl(201, 69%, 39%)
HSVhsv(201, 81%, 65%)
CMYKcmyk(81.4%, 28.7%, 0%, 34.5%)
CIE-LABlab(47.33, -8.08, -32.78)
CIE-LCHlch(47.33, 33.76, 256.16°)
OKLaboklab(54.2% -0.0572 -0.0928)
OKLCHoklch(54.2% 0.109 238.3)
XYZxyz(14.1342, 16.2732, 38.9478)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F77A7 #A74F1F
analogous
#1FA793 #1F77A7 #1F33A7
triadic
#1F77A7 #A71F77 #77A71F
tetradic
#1F77A7 #931FA7 #A74F1F #33A71F
square
#1F77A7 #931FA7 #A74F1F #33A71F
split-complementary
#1F77A7 #A71F33 #A7931F
monochromatic
#0C2D40 #155273 #1F77A7 #2B9BD8 #5FB3E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F77A7#FFFFFF#000000##FFFFFF
##1F77A71.004.944.264.94
#FFFFFF4.941.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f77a7;
/* rgb */ color: rgb(31, 119, 167);
/* oklch */ color: oklch(54.2% 0.109 238.3);
Tailwind
colors: {
  custom: {
    50: '#729ec1',
    500: '#1f77a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f77a7;
$custom-light: #729ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f77a7",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 167
  },
  "hsl": {
    "h": 201.176,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.54198,
    "c": 0.10898,
    "h": 238.3
  },
  "luminance": 0.16275
}

Semantic roles & 50–950 ramp

primary
#1F77A7
secondary
#C6815C
accent
#7A3CEC
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #1F77A7

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

Preview Lab → · Contrast checker → · Palette generator →

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