#1F78B4#1F78B4

#1F78B4 is a mid, vivid cyan. Relative luminance 0.170; OKLCH L 55.2% C 0.123 H 243.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F78B4
RGBrgb(31, 120, 180)
HSLhsl(204, 71%, 41%)
HSVhsv(204, 83%, 71%)
CMYKcmyk(82.8%, 33.3%, 0%, 29.4%)
CIE-LABlab(48.28, -3.81, -38.84)
CIE-LCHlch(48.28, 39.03, 264.40°)
OKLaboklab(55.16% -0.054 -0.1104)
OKLCHoklch(55.16% 0.123 243.9)
XYZxyz(15.5165, 17.0176, 45.6381)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F78B4 #B45B1F
analogous
#1FB4A6 #1F78B4 #1F2EB4
triadic
#1F78B4 #B41F78 #78B41F
tetradic
#1F78B4 #A61FB4 #B45B1F #2EB41F
square
#1F78B4 #A61FB4 #B45B1F #2EB41F
split-complementary
#1F78B4 #B41F2E #B4A61F
monochromatic
#0D324C #165580 #1F78B4 #3498DC #68B3E5

Accessibility & contrast

On white

4.77
#1F78B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#1F78B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F78B4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F78B4#FFFFFF#000000##FFFFFF
##1F78B41.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C7AB7
Deuteranopia (green-blind)
#476DB3
Tritanopia (blue-blind)
#00878E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f78b4;
/* rgb */ color: rgb(31, 120, 180);
/* oklch */ color: oklch(55.2% 0.123 243.9);
Tailwind
colors: {
  custom: {
    50: '#749ecb',
    500: '#1f78b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f78b4;
$custom-light: #749ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f78b4",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 180
  },
  "hsl": {
    "h": 204.161,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.55163,
    "c": 0.12292,
    "h": 243.9
  },
  "luminance": 0.1702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F78B4

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

Preview Lab → · Contrast checker → · Palette generator →

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