#1F78A6#1F78A6

#1F78A6 is a mid, moderate cyan. Relative luminance 0.165; OKLCH L 54.4% C 0.107 H 236.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#1F78A6
RGBrgb(31, 120, 166)
HSLhsl(200, 69%, 39%)
HSVhsv(200, 81%, 65%)
CMYKcmyk(81.3%, 27.7%, 0%, 34.9%)
CIE-LABlab(47.59, -9.03, -31.79)
CIE-LCHlch(47.59, 33.05, 254.13°)
OKLaboklab(54.39% -0.0585 -0.0899)
OKLCHoklch(54.39% 0.107 236.9)
XYZxyz(14.1617, 16.4757, 38.5027)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F78A6 #A64D1F
analogous
#1FA690 #1F78A6 #1F35A6
triadic
#1F78A6 #A61F78 #78A61F
tetradic
#1F78A6 #901FA6 #A64D1F #35A61F
square
#1F78A6 #901FA6 #A64D1F #35A61F
split-complementary
#1F78A6 #A61F35 #A6901F
monochromatic
#0C2D3F #155372 #1F78A6 #2B9DD7 #5EB5E1

Accessibility & contrast

On white

4.89
#1F78A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#1F78A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F78A6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F78A6#FFFFFF#000000##FFFFFF
##1F78A61.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6278A8
Deuteranopia (green-blind)
#506BA5
Tritanopia (blue-blind)
#008488
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f78a6;
/* rgb */ color: rgb(31, 120, 166);
/* oklch */ color: oklch(54.4% 0.107 236.9);
Tailwind
colors: {
  custom: {
    50: '#729ec0',
    500: '#1f78a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f78a6;
$custom-light: #729ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f78a6",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 166
  },
  "hsl": {
    "h": 200.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.5439,
    "c": 0.10722,
    "h": 236.9
  },
  "luminance": 0.16477
}

Semantic roles & 50–950 ramp

primary
#1F78A6
secondary
#C57F5B
accent
#783CEB
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #1F78A6

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

Preview Lab → · Contrast checker → · Palette generator →

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