#1F5A87#1F5A87

#1F5A87 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.2% C 0.095 H 245.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#1F5A87
RGBrgb(31, 90, 135)
HSLhsl(206, 63%, 33%)
HSVhsv(206, 77%, 53%)
CMYKcmyk(77%, 33.3%, 0%, 47.1%)
CIE-LABlab(36.65, -2.55, -30.48)
CIE-LCHlch(36.65, 30.59, 265.22°)
OKLaboklab(45.22% -0.0395 -0.0865)
OKLCHoklch(45.22% 0.095 245.4)
XYZxyz(8.5927, 9.3519, 24.2692)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A87 #874C1F
analogous
#1F8780 #1F5A87 #1F2687
triadic
#1F5A87 #871F5A #5A871F
tetradic
#1F5A87 #801F87 #874C1F #26871F
square
#1F5A87 #801F87 #874C1F #26871F
split-complementary
#1F5A87 #871F26 #87801F
monochromatic
#081823 #143955 #1F5A87 #2A7BB9 #4B9AD6

Accessibility & contrast

On white

7.32
#1F5A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#1F5A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5A87
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A87#FFFFFF#000000##FFFFFF
##1F5A871.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455C89
Deuteranopia (green-blind)
#375286
Tritanopia (blue-blind)
#00656A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f5a87;
/* rgb */ color: rgb(31, 90, 135);
/* oklch */ color: oklch(45.2% 0.095 245.4);
Tailwind
colors: {
  custom: {
    50: '#6a88aa',
    500: '#1f5a87',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a87;
$custom-light: #6a88aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a87",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 135
  },
  "hsl": {
    "h": 205.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45216,
    "c": 0.09508,
    "h": 245.4
  },
  "luminance": 0.09353
}

Semantic roles & 50–950 ramp

primary
#1F5A87
secondary
#B8794A
accent
#8942E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#070B10
muted
#7A7C7F

Preview Lab

Preview with #1F5A87

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

Preview Lab → · Contrast checker → · Palette generator →

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