#1F5987#1F5987

#1F5987 is a dark, moderate cyan. Relative luminance 0.092; OKLCH L 45.0% C 0.096 H 246.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#1F5987
RGBrgb(31, 89, 135)
HSLhsl(207, 63%, 33%)
HSVhsv(207, 77%, 53%)
CMYKcmyk(77%, 34.1%, 0%, 47.1%)
CIE-LABlab(36.34, -1.91, -30.98)
CIE-LCHlch(36.34, 31.04, 266.46°)
OKLaboklab(44.97% -0.0385 -0.0879)
OKLCHoklch(44.97% 0.096 246.3)
XYZxyz(8.5090, 9.1843, 24.2413)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5987 #874D1F
analogous
#1F8781 #1F5987 #1F2587
triadic
#1F5987 #871F59 #59871F
tetradic
#1F5987 #811F87 #874D1F #25871F
square
#1F5987 #811F87 #874D1F #25871F
split-complementary
#1F5987 #871F25 #87811F
monochromatic
#081723 #143855 #1F5987 #2A7AB9 #4B98D6

Accessibility & contrast

On white

7.40
#1F5987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#1F5987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5987
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5987#FFFFFF#000000##FFFFFF
##1F59871.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445B89
Deuteranopia (green-blind)
#355186
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f5987;
/* rgb */ color: rgb(31, 89, 135);
/* oklch */ color: oklch(45.0% 0.096 246.3);
Tailwind
colors: {
  custom: {
    50: '#6a87aa',
    500: '#1f5987',
    950: '#000000',
  },
}
SCSS
$custom: #1f5987;
$custom-light: #6a87aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5987",
  "rgb": {
    "r": 31,
    "g": 89,
    "b": 135
  },
  "hsl": {
    "h": 206.538,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44967,
    "c": 0.09601,
    "h": 246.3
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#1F5987
secondary
#B87B4A
accent
#8A42E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#070B10
muted
#7A7C7F

Preview Lab

Preview with #1F5987

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

Preview Lab → · Contrast checker → · Palette generator →

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