#31789D#31789D

#31789D is a mid, moderate cyan. Relative luminance 0.165; OKLCH L 54.4% C 0.091 H 234.7°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#31789D
RGBrgb(49, 120, 157)
HSLhsl(201, 52%, 40%)
HSVhsv(201, 69%, 62%)
CMYKcmyk(68.8%, 23.6%, 0%, 38.4%)
CIE-LABlab(47.65, -9.87, -26.40)
CIE-LCHlch(47.65, 28.18, 249.50°)
OKLaboklab(54.43% -0.0524 -0.0741)
OKLCHoklch(54.43% 0.091 234.7)
XYZxyz(14.0665, 16.5187, 34.3389)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31789D #9D5631
analogous
#319D8C #31789D #31429D
triadic
#31789D #9D3178 #789D31
tetradic
#31789D #8C319D #9D5631 #429D31
square
#31789D #8C319D #9D5631 #429D31
split-complementary
#31789D #9D3142 #9D8C31
monochromatic
#143140 #22546E #31789D #469AC5 #75B3D4

Accessibility & contrast

On white

4.88
#31789D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#31789D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31789D
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31789D#FFFFFF#000000##FFFFFF
##31789D1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#66779F
Deuteranopia (green-blind)
#576C9C
Tritanopia (blue-blind)
#008284
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31789d;
/* rgb */ color: rgb(49, 120, 157);
/* oklch */ color: oklch(54.4% 0.091 234.7);
Tailwind
colors: {
  custom: {
    50: '#769fba',
    500: '#31789d',
    950: '#000000',
  },
}
SCSS
$custom: #31789d;
$custom-light: #769fba;
$custom-dark: #000000;
JSON
{
  "hex": "#31789d",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 157
  },
  "hsl": {
    "h": 200.556,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54431,
    "c": 0.0908,
    "h": 234.7
  },
  "luminance": 0.1652
}

Semantic roles & 50–950 ramp

primary
#31789D
secondary
#BC896E
accent
#7D4CDC
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #31789D

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

Preview Lab → · Contrast checker → · Palette generator →

#31789D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva