#1F5787#1F5787

#1F5787 is a dark, moderate cyan. Relative luminance 0.089; OKLCH L 44.5% C 0.098 H 248.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#1F5787
RGBrgb(31, 87, 135)
HSLhsl(208, 63%, 33%)
HSVhsv(208, 77%, 53%)
CMYKcmyk(77%, 35.6%, 0%, 47.1%)
CIE-LABlab(35.71, -0.64, -31.98)
CIE-LCHlch(35.71, 31.98, 268.85°)
OKLaboklab(44.47% -0.0365 -0.0909)
OKLCHoklch(44.47% 0.098 248.1)
XYZxyz(8.3448, 8.8560, 24.1866)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5787 #874F1F
analogous
#1F8783 #1F5787 #1F2387
triadic
#1F5787 #871F57 #57871F
tetradic
#1F5787 #831F87 #874F1F #23871F
square
#1F5787 #831F87 #874F1F #23871F
split-complementary
#1F5787 #871F23 #87831F
monochromatic
#081723 #143755 #1F5787 #2A77B9 #4B96D6

Accessibility & contrast

On white

7.58
#1F5787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#1F5787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5787
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5787#FFFFFF#000000##FFFFFF
##1F57871.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415989
Deuteranopia (green-blind)
#325086
Tritanopia (blue-blind)
#006268
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f5787;
/* rgb */ color: rgb(31, 87, 135);
/* oklch */ color: oklch(44.5% 0.098 248.1);
Tailwind
colors: {
  custom: {
    50: '#6a86aa',
    500: '#1f5787',
    950: '#000000',
  },
}
SCSS
$custom: #1f5787;
$custom-light: #6a86aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5787",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 135
  },
  "hsl": {
    "h": 207.692,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4447,
    "c": 0.09795,
    "h": 248.1
  },
  "luminance": 0.08857
}

Semantic roles & 50–950 ramp

primary
#1F5787
secondary
#B87D4A
accent
#8E42E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#070B10
muted
#7A7C7F

Preview Lab

Preview with #1F5787

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

Preview Lab → · Contrast checker → · Palette generator →

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