#1F71A8#1F71A8

#1F71A8 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.8% C 0.115 H 243.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#1F71A8
RGBrgb(31, 113, 168)
HSLhsl(204, 69%, 39%)
HSVhsv(204, 82%, 66%)
CMYKcmyk(81.5%, 32.7%, 0%, 34.1%)
CIE-LABlab(45.53, -4.13, -36.19)
CIE-LCHlch(45.53, 36.43, 263.49°)
OKLaboklab(52.79% -0.0513 -0.1028)
OKLCHoklch(52.79% 0.115 243.5)
XYZxyz(13.5353, 14.9270, 39.2060)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F71A8 #A8561F
analogous
#1FA89B #1F71A8 #1F2CA8
triadic
#1F71A8 #A81F71 #71A81F
tetradic
#1F71A8 #9B1FA8 #A8561F #2CA81F
square
#1F71A8 #9B1FA8 #A8561F #2CA81F
split-complementary
#1F71A8 #A81F2C #A89B1F
monochromatic
#0C2B41 #154E74 #1F71A8 #2C93D8 #60ADE2

Accessibility & contrast

On white

5.27
#1F71A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#1F71A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F71A8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F71A8#FFFFFF#000000##FFFFFF
##1F71A81.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5773AA
Deuteranopia (green-blind)
#4466A7
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f71a8;
/* rgb */ color: rgb(31, 113, 168);
/* oklch */ color: oklch(52.8% 0.115 243.5);
Tailwind
colors: {
  custom: {
    50: '#7299c2',
    500: '#1f71a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f71a8;
$custom-light: #7299c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f71a8",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 168
  },
  "hsl": {
    "h": 204.088,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5279,
    "c": 0.11488,
    "h": 243.5
  },
  "luminance": 0.14929
}

Semantic roles & 50–950 ramp

primary
#1F71A8
secondary
#C6875D
accent
#833CEC
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #1F71A8

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

Preview Lab → · Contrast checker → · Palette generator →

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