#1F5871#1F5871

#1F5871 is a dark, moderate cyan. Relative luminance 0.085; OKLCH L 43.5% C 0.071 H 230.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#1F5871
RGBrgb(31, 88, 113)
HSLhsl(198, 57%, 28%)
HSVhsv(198, 73%, 44%)
CMYKcmyk(72.6%, 22.1%, 0%, 55.7%)
CIE-LABlab(34.93, -9.59, -19.64)
CIE-LCHlch(34.93, 21.86, 243.97°)
OKLaboklab(43.49% -0.0452 -0.0551)
OKLCHoklch(43.49% 0.071 230.6)
XYZxyz(7.0342, 8.4622, 16.8822)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5871 #71381F
analogous
#1F7161 #1F5871 #1F2F71
triadic
#1F5871 #711F58 #58711F
tetradic
#1F5871 #611F71 #71381F #2F711F
square
#1F5871 #611F71 #71381F #2F711F
split-complementary
#1F5871 #711F2F #71611F
monochromatic
#071318 #123341 #1F5871 #2C7DA1 #40A0CB

Accessibility & contrast

On white

7.80
#1F5871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#1F5871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5871
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5871#FFFFFF#000000##FFFFFF
##1F58711.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5772
Deuteranopia (green-blind)
#404F71
Tritanopia (blue-blind)
#005F60
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f5871;
/* rgb */ color: rgb(31, 88, 113);
/* oklch */ color: oklch(43.5% 0.071 230.6);
Tailwind
colors: {
  custom: {
    50: '#66879a',
    500: '#1f5871',
    950: '#000000',
  },
}
SCSS
$custom: #1f5871;
$custom-light: #66879a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5871",
  "rgb": {
    "r": 31,
    "g": 88,
    "b": 113
  },
  "hsl": {
    "h": 198.293,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.43492,
    "c": 0.07128,
    "h": 230.6
  },
  "luminance": 0.08463
}

Semantic roles & 50–950 ramp

primary
#1F5871
secondary
#A56447
accent
#7648E0
background
#F6F8F9
surface
#EBEFF2
border
#C6CACC
text
#060B0E
muted
#7A7C7E

Preview Lab

Preview with #1F5871

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

Preview Lab → · Contrast checker → · Palette generator →

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