#31718B#31718B

#31718B is a mid, moderate cyan. Relative luminance 0.143; OKLCH L 51.8% C 0.077 H 227.8°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#31718B
RGBrgb(49, 113, 139)
HSLhsl(197, 48%, 37%)
HSVhsv(197, 65%, 55%)
CMYKcmyk(64.7%, 18.7%, 0%, 45.5%)
CIE-LABlab(44.70, -11.98, -20.32)
CIE-LCHlch(44.70, 23.59, 239.47°)
OKLaboklab(51.83% -0.0515 -0.0567)
OKLCHoklch(51.83% 0.077 227.8)
XYZxyz(11.8301, 14.3261, 26.5628)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31718B #8B4B31
analogous
#318B78 #31718B #31448B
triadic
#31718B #8B3171 #718B31
tetradic
#31718B #78318B #8B4B31 #448B31
square
#31718B #78318B #8B4B31 #448B31
split-complementary
#31718B #8B3144 #8B7831
monochromatic
#112731 #214C5E #31718B #4196B8 #6BAFCB

Accessibility & contrast

On white

5.43
#31718B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#31718B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31718B
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31718B#FFFFFF#000000##FFFFFF
##31718B1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#636F8C
Deuteranopia (green-blind)
#57668B
Tritanopia (blue-blind)
#007879
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31718b;
/* rgb */ color: rgb(49, 113, 139);
/* oklch */ color: oklch(51.8% 0.077 227.8);
Tailwind
colors: {
  custom: {
    50: '#7399ad',
    500: '#31718b',
    950: '#000000',
  },
}
SCSS
$custom: #31718b;
$custom-light: #7399ad;
$custom-dark: #000000;
JSON
{
  "hex": "#31718b",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 139
  },
  "hsl": {
    "h": 197.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.51827,
    "c": 0.07665,
    "h": 227.8
  },
  "luminance": 0.14327
}

Semantic roles & 50–950 ramp

primary
#31718B
secondary
#B27C65
accent
#7750D7
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31718B

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

Preview Lab → · Contrast checker → · Palette generator →

#31718B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva