#1F71A5#1F71A5

#1F71A5 is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.6% C 0.111 H 242.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#1F71A5
RGBrgb(31, 113, 165)
HSLhsl(203, 68%, 38%)
HSVhsv(203, 81%, 65%)
CMYKcmyk(81.2%, 31.5%, 0%, 35.3%)
CIE-LABlab(45.38, -5.26, -34.67)
CIE-LCHlch(45.38, 35.07, 261.37°)
OKLaboklab(52.62% -0.0522 -0.0984)
OKLCHoklch(52.62% 0.111 242)
XYZxyz(13.2591, 14.8165, 37.7511)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F71A5 #A5531F
analogous
#1FA596 #1F71A5 #1F2EA5
triadic
#1F71A5 #A51F71 #71A51F
tetradic
#1F71A5 #961FA5 #A5531F #2EA51F
square
#1F71A5 #961FA5 #A5531F #2EA51F
split-complementary
#1F71A5 #A51F2E #A5961F
monochromatic
#0C2A3E #154E71 #1F71A5 #2A94D7 #5EAEE1

Accessibility & contrast

On white

5.30
#1F71A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#1F71A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F71A5
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F71A5#FFFFFF#000000##FFFFFF
##1F71A51.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5972A7
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#007E83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f71a5;
/* rgb */ color: rgb(31, 113, 165);
/* oklch */ color: oklch(52.6% 0.111 242.0);
Tailwind
colors: {
  custom: {
    50: '#7199c0',
    500: '#1f71a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f71a5;
$custom-light: #7199c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f71a5",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 165
  },
  "hsl": {
    "h": 203.284,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.5262,
    "c": 0.11137,
    "h": 242
  },
  "luminance": 0.14818
}

Semantic roles & 50–950 ramp

primary
#1F71A5
secondary
#C5845B
accent
#803DEB
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #1F71A5

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

Preview Lab → · Contrast checker → · Palette generator →

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