#31708B#31708B

#31708B is a mid, moderate cyan. Relative luminance 0.141; OKLCH L 51.6% C 0.077 H 229.1°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#31708B
RGBrgb(49, 112, 139)
HSLhsl(198, 48%, 37%)
HSVhsv(198, 65%, 55%)
CMYKcmyk(64.7%, 19.4%, 0%, 45.5%)
CIE-LABlab(44.38, -11.41, -20.80)
CIE-LCHlch(44.38, 23.73, 241.26°)
OKLaboklab(51.58% -0.0504 -0.0581)
OKLCHoklch(51.58% 0.077 229.1)
XYZxyz(11.7192, 14.1042, 26.5259)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31708B #8B4C31
analogous
#318B79 #31708B #31438B
triadic
#31708B #8B3170 #708B31
tetradic
#31708B #79318B #8B4C31 #438B31
square
#31708B #79318B #8B4C31 #438B31
split-complementary
#31708B #8B3143 #8B7931
monochromatic
#112731 #214C5E #31708B #4194B8 #6BAECB

Accessibility & contrast

On white

5.50
#31708B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#31708B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31708B
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31708B#FFFFFF#000000##FFFFFF
##31708B1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#626E8C
Deuteranopia (green-blind)
#55658B
Tritanopia (blue-blind)
#007879
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #31708b;
/* rgb */ color: rgb(49, 112, 139);
/* oklch */ color: oklch(51.6% 0.077 229.1);
Tailwind
colors: {
  custom: {
    50: '#7399ad',
    500: '#31708b',
    950: '#000000',
  },
}
SCSS
$custom: #31708b;
$custom-light: #7399ad;
$custom-dark: #000000;
JSON
{
  "hex": "#31708b",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 139
  },
  "hsl": {
    "h": 198,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.51576,
    "c": 0.07694,
    "h": 229.1
  },
  "luminance": 0.14105
}

Semantic roles & 50–950 ramp

primary
#31708B
secondary
#B27C65
accent
#7950D7
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090D10
muted
#7B7E7F

Preview Lab

Preview with #31708B

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

Preview Lab → · Contrast checker → · Palette generator →

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