#1F79B4#1F79B4

#1F79B4 is a mid, vivid cyan. Relative luminance 0.173; OKLCH L 55.4% C 0.122 H 243.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#1F79B4
RGBrgb(31, 121, 180)
HSLhsl(204, 71%, 41%)
HSVhsv(204, 83%, 71%)
CMYKcmyk(82.8%, 32.8%, 0%, 29.4%)
CIE-LABlab(48.59, -4.41, -38.37)
CIE-LCHlch(48.59, 38.62, 263.44°)
OKLaboklab(55.4% -0.0549 -0.109)
OKLCHoklch(55.4% 0.122 243.3)
XYZxyz(15.6374, 17.2594, 45.6784)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F79B4 #B45A1F
analogous
#1FB4A5 #1F79B4 #1F2FB4
triadic
#1F79B4 #B41F79 #79B41F
tetradic
#1F79B4 #A51FB4 #B45A1F #2FB41F
square
#1F79B4 #A51FB4 #B45A1F #2FB41F
split-complementary
#1F79B4 #B41F2F #B4A51F
monochromatic
#0D334C #165680 #1F79B4 #349ADC #68B4E5

Accessibility & contrast

On white

4.72
#1F79B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#1F79B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F79B4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F79B4#FFFFFF#000000##FFFFFF
##1F79B41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D7BB7
Deuteranopia (green-blind)
#486DB3
Tritanopia (blue-blind)
#00888E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f79b4;
/* rgb */ color: rgb(31, 121, 180);
/* oklch */ color: oklch(55.4% 0.122 243.3);
Tailwind
colors: {
  custom: {
    50: '#749fcb',
    500: '#1f79b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f79b4;
$custom-light: #749fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f79b4",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 180
  },
  "hsl": {
    "h": 203.758,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.55403,
    "c": 0.12205,
    "h": 243.3
  },
  "luminance": 0.17261
}

Semantic roles & 50–950 ramp

primary
#1F79B4
secondary
#CB8D64
accent
#813AED
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #1F79B4

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

Preview Lab → · Contrast checker → · Palette generator →

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