#1F5D87#1F5D87

#1F5D87 is a mid, moderate cyan. Relative luminance 0.099; OKLCH L 46.0% C 0.092 H 242.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#1F5D87
RGBrgb(31, 93, 135)
HSLhsl(204, 63%, 33%)
HSVhsv(204, 77%, 53%)
CMYKcmyk(77%, 31.1%, 0%, 47.1%)
CIE-LABlab(37.60, -4.42, -28.98)
CIE-LCHlch(37.60, 29.32, 261.32°)
OKLaboklab(45.97% -0.0426 -0.0821)
OKLCHoklch(45.97% 0.092 242.6)
XYZxyz(8.8509, 9.8682, 24.3553)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5D87 #87491F
analogous
#1F877D #1F5D87 #1F2987
triadic
#1F5D87 #871F5D #5D871F
tetradic
#1F5D87 #7D1F87 #87491F #29871F
square
#1F5D87 #7D1F87 #87491F #29871F
split-complementary
#1F5D87 #871F29 #877D1F
monochromatic
#081823 #143B55 #1F5D87 #2A7FB9 #4B9ED6

Accessibility & contrast

On white

7.06
#1F5D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#1F5D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5D87
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5D87#FFFFFF#000000##FFFFFF
##1F5D871.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5E89
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#00676C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f5d87;
/* rgb */ color: rgb(31, 93, 135);
/* oklch */ color: oklch(46.0% 0.092 242.6);
Tailwind
colors: {
  custom: {
    50: '#6a8aaa',
    500: '#1f5d87',
    950: '#000000',
  },
}
SCSS
$custom: #1f5d87;
$custom-light: #6a8aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5d87",
  "rgb": {
    "r": 31,
    "g": 93,
    "b": 135
  },
  "hsl": {
    "h": 204.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.09244,
    "h": 242.6
  },
  "luminance": 0.09869
}

Semantic roles & 50–950 ramp

primary
#1F5D87
secondary
#B8764A
accent
#8442E6
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#070B10
muted
#7A7C7F

Preview Lab

Preview with #1F5D87

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

Preview Lab → · Contrast checker → · Palette generator →

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