#1F71D4#1F71D4

#1F71D4 is a mid, vivid cyan. Relative luminance 0.169; OKLCH L 55.6% C 0.170 H 256.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#1F71D4
RGBrgb(31, 113, 212)
HSLhsl(213, 74%, 48%)
HSVhsv(213, 85%, 83%)
CMYKcmyk(85.4%, 46.7%, 0%, 16.9%)
CIE-LABlab(48.07, 12.80, -57.55)
CIE-LCHlch(48.07, 58.96, 282.54°)
OKLaboklab(55.6% -0.0408 -0.1655)
OKLCHoklch(55.6% 0.17 256.1)
XYZxyz(18.3494, 16.8527, 64.5604)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F71D4 #D4821F
analogous
#1FCBD4 #1F71D4 #281FD4
triadic
#1F71D4 #D41F71 #71D41F
tetradic
#1F71D4 #D41FCB #D4821F #1FD428
square
#1F71D4 #D41FCB #D4821F #1FD428
split-complementary
#1F71D4 #D4281F #CBD41F
monochromatic
#0F3869 #17559F #1F71D4 #4B91E5 #81B2ED

Accessibility & contrast

On white

4.80
#1F71D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#1F71D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F71D4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F71D4#FFFFFF#000000##FFFFFF
##1F71D41.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#397BD8
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#008998
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f71d4;
/* rgb */ color: rgb(31, 113, 212);
/* oklch */ color: oklch(55.6% 0.170 256.1);
Tailwind
colors: {
  custom: {
    50: '#7b99e2',
    500: '#1f71d4',
    950: '#000000',
  },
}
SCSS
$custom: #1f71d4;
$custom-light: #7b99e2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f71d4",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 212.818,
    "s": 74.486,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55597,
    "c": 0.17044,
    "h": 256.1
  },
  "luminance": 0.16855
}

Semantic roles & 50–950 ramp

primary
#1F71D4
secondary
#D5AC7A
accent
#9D37F1
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #1F71D4

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

Preview Lab → · Contrast checker → · Palette generator →

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