#31587F#31587F

#31587F is a dark, moderate cyan. Relative luminance 0.092; OKLCH L 45.0% C 0.078 H 249.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#31587F
RGBrgb(49, 88, 127)
HSLhsl(210, 44%, 35%)
HSVhsv(210, 61%, 50%)
CMYKcmyk(61.4%, 30.7%, 0%, 50.2%)
CIE-LABlab(36.30, -1.08, -26.10)
CIE-LCHlch(36.30, 26.12, 267.64°)
OKLaboklab(44.99% -0.0268 -0.0735)
OKLCHoklch(44.99% 0.078 249.9)
XYZxyz(8.5857, 9.1639, 21.3909)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31587F #7F5831
analogous
#317F7F #31587F #31317F
triadic
#31587F #7F3158 #587F31
tetradic
#31587F #7F317F #7F5831 #317F31
square
#31587F #7F317F #7F5831 #317F31
split-complementary
#31587F #7F3131 #7F7F31
monochromatic
#0F1B27 #203953 #31587F #4277AB #6695C4

Accessibility & contrast

On white

7.41
#31587F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#31587F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31587F
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31587F#FFFFFF#000000##FFFFFF
##31587F1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485A81
Deuteranopia (green-blind)
#3D527E
Tritanopia (blue-blind)
#006166
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #31587f;
/* rgb */ color: rgb(49, 88, 127);
/* oklch */ color: oklch(45.0% 0.078 249.9);
Tailwind
colors: {
  custom: {
    50: '#7086a4',
    500: '#31587f',
    950: '#000000',
  },
}
SCSS
$custom: #31587f;
$custom-light: #7086a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31587f",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 127
  },
  "hsl": {
    "h": 210,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44993,
    "c": 0.07825,
    "h": 249.9
  },
  "luminance": 0.09165
}

Semantic roles & 50–950 ramp

primary
#31587F
secondary
#AB8660
accent
#9454D4
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B0F
muted
#7B7C7F

Preview Lab

Preview with #31587F

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

Preview Lab → · Contrast checker → · Palette generator →

#31587F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva