#31789C#31789C

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

Color values

HEX#31789C
RGBrgb(49, 120, 156)
HSLhsl(200, 52%, 40%)
HSVhsv(200, 69%, 61%)
CMYKcmyk(68.6%, 23.1%, 0%, 38.8%)
CIE-LABlab(47.60, -10.21, -25.88)
CIE-LCHlch(47.60, 27.82, 248.46°)
OKLaboklab(54.38% -0.0528 -0.0727)
OKLCHoklch(54.38% 0.09 234)
XYZxyz(13.9815, 16.4847, 33.8911)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31789C #9C5531
analogous
#319C8A #31789C #31429C
triadic
#31789C #9C3178 #789C31
tetradic
#31789C #8A319C #9C5531 #429C31
square
#31789C #8A319C #9C5531 #429C31
split-complementary
#31789C #9C3142 #9C8A31
monochromatic
#14303F #22546D #31789C #459AC5 #74B3D3

Accessibility & contrast

On white

4.89
#31789C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #31789C
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31789C#FFFFFF#000000##FFFFFF
##31789C1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#67779E
Deuteranopia (green-blind)
#586C9B
Tritanopia (blue-blind)
#008284
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31789c;
/* rgb */ color: rgb(49, 120, 156);
/* oklch */ color: oklch(54.4% 0.090 234.0);
Tailwind
colors: {
  custom: {
    50: '#769fb9',
    500: '#31789c',
    950: '#000000',
  },
}
SCSS
$custom: #31789c;
$custom-light: #769fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31789c",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 156
  },
  "hsl": {
    "h": 200.187,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.54382,
    "c": 0.0898,
    "h": 234
  },
  "luminance": 0.16486
}

Semantic roles & 50–950 ramp

primary
#31789C
secondary
#BB886D
accent
#7C4CDC
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #31789C

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

Preview Lab → · Contrast checker → · Palette generator →

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