#1F5F87#1F5F87

#1F5F87 is a mid, moderate cyan. Relative luminance 0.102; OKLCH L 46.5% C 0.091 H 240.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#1F5F87
RGBrgb(31, 95, 135)
HSLhsl(203, 63%, 33%)
HSVhsv(203, 77%, 53%)
CMYKcmyk(77%, 29.6%, 0%, 47.1%)
CIE-LABlab(38.24, -5.66, -27.99)
CIE-LCHlch(38.24, 28.55, 258.57°)
OKLaboklab(46.47% -0.0446 -0.0791)
OKLCHoklch(46.47% 0.091 240.6)
XYZxyz(9.0287, 10.2239, 24.4145)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F87 #87471F
analogous
#1F877B #1F5F87 #1F2B87
triadic
#1F5F87 #871F5F #5F871F
tetradic
#1F5F87 #7B1F87 #87471F #2B871F
square
#1F5F87 #7B1F87 #87471F #2B871F
split-complementary
#1F5F87 #871F2B #877B1F
monochromatic
#081923 #143C55 #1F5F87 #2A82B9 #4BA0D6

Accessibility & contrast

On white

6.90
#1F5F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#1F5F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F87
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F87#FFFFFF#000000##FFFFFF
##1F5F871.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5F89
Deuteranopia (green-blind)
#3E5686
Tritanopia (blue-blind)
#00696D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f5f87;
/* rgb */ color: rgb(31, 95, 135);
/* oklch */ color: oklch(46.5% 0.091 240.6);
Tailwind
colors: {
  custom: {
    50: '#6a8caa',
    500: '#1f5f87',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f87;
$custom-light: #6a8caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f87",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 135
  },
  "hsl": {
    "h": 203.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46472,
    "c": 0.09083,
    "h": 240.6
  },
  "luminance": 0.10225
}

Semantic roles & 50–950 ramp

primary
#1F5F87
secondary
#B8744A
accent
#8142E6
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#070C10
muted
#7A7D7F

Preview Lab

Preview with #1F5F87

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

Preview Lab → · Contrast checker → · Palette generator →

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