#31789B#31789B

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

Color values

HEX#31789B
RGBrgb(49, 120, 155)
HSLhsl(200, 52%, 40%)
HSVhsv(200, 68%, 61%)
CMYKcmyk(68.4%, 22.6%, 0%, 39.2%)
CIE-LABlab(47.56, -10.56, -25.36)
CIE-LCHlch(47.56, 27.47, 247.40°)
OKLaboklab(54.33% -0.0531 -0.0711)
OKLCHoklch(54.33% 0.089 233.2)
XYZxyz(13.8972, 16.4510, 33.4469)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31789B #9B5431
analogous
#319B89 #31789B #31439B
triadic
#31789B #9B3178 #789B31
tetradic
#31789B #89319B #9B5431 #439B31
square
#31789B #89319B #9B5431 #439B31
split-complementary
#31789B #9B3143 #9B8931
monochromatic
#14303E #22546D #31789B #459AC4 #73B3D3

Accessibility & contrast

On white

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

On black

4.29
#31789B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31789B#FFFFFF#000000##FFFFFF
##31789B1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#67779D
Deuteranopia (green-blind)
#586C9A
Tritanopia (blue-blind)
#008184
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31789b;
/* rgb */ color: rgb(49, 120, 155);
/* oklch */ color: oklch(54.3% 0.089 233.2);
Tailwind
colors: {
  custom: {
    50: '#769fb8',
    500: '#31789b',
    950: '#000000',
  },
}
SCSS
$custom: #31789b;
$custom-light: #769fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#31789b",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 155
  },
  "hsl": {
    "h": 199.811,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.54333,
    "c": 0.08881,
    "h": 233.2
  },
  "luminance": 0.16452
}

Semantic roles & 50–950 ramp

primary
#31789B
secondary
#BB876D
accent
#7C4CDB
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #31789B

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

Preview Lab → · Contrast checker → · Palette generator →

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