#1F71A7#1F71A7

#1F71A7 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.7% C 0.114 H 243.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#1F71A7
RGBrgb(31, 113, 167)
HSLhsl(204, 69%, 39%)
HSVhsv(204, 81%, 65%)
CMYKcmyk(81.4%, 32.3%, 0%, 34.5%)
CIE-LABlab(45.48, -4.51, -35.69)
CIE-LCHlch(45.48, 35.97, 262.80°)
OKLaboklab(52.73% -0.0516 -0.1013)
OKLCHoklch(52.73% 0.114 243)
XYZxyz(13.4425, 14.8899, 38.7173)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F71A7 #A7551F
analogous
#1FA799 #1F71A7 #1F2DA7
triadic
#1F71A7 #A71F71 #71A71F
tetradic
#1F71A7 #991FA7 #A7551F #2DA71F
square
#1F71A7 #991FA7 #A7551F #2DA71F
split-complementary
#1F71A7 #A71F2D #A7991F
monochromatic
#0C2B40 #154E73 #1F71A7 #2B93D8 #5FAEE1

Accessibility & contrast

On white

5.28
#1F71A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#1F71A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F71A7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F71A7#FFFFFF#000000##FFFFFF
##1F71A71.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5872A9
Deuteranopia (green-blind)
#4566A6
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f71a7;
/* rgb */ color: rgb(31, 113, 167);
/* oklch */ color: oklch(52.7% 0.114 243.0);
Tailwind
colors: {
  custom: {
    50: '#7199c1',
    500: '#1f71a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f71a7;
$custom-light: #7199c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f71a7",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 167
  },
  "hsl": {
    "h": 203.824,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.52733,
    "c": 0.11371,
    "h": 243
  },
  "luminance": 0.14892
}

Semantic roles & 50–950 ramp

primary
#1F71A7
secondary
#C6865C
accent
#823CEC
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #1F71A7

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

Preview Lab → · Contrast checker → · Palette generator →

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