#31789E#31789E

#31789E is a mid, moderate cyan. Relative luminance 0.166; OKLCH L 54.5% C 0.092 H 235.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#31789E
RGBrgb(49, 120, 158)
HSLhsl(201, 53%, 41%)
HSVhsv(201, 69%, 62%)
CMYKcmyk(69%, 24.1%, 0%, 38%)
CIE-LABlab(47.69, -9.52, -26.92)
CIE-LCHlch(47.69, 28.55, 250.52°)
OKLaboklab(54.48% -0.0521 -0.0756)
OKLCHoklch(54.48% 0.092 235.5)
XYZxyz(14.1522, 16.5530, 34.7903)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31789E #9E5731
analogous
#319E8D #31789E #31429E
triadic
#31789E #9E3178 #789E31
tetradic
#31789E #8D319E #9E5731 #429E31
square
#31789E #8D319E #9E5731 #429E31
split-complementary
#31789E #9E3142 #9E8D31
monochromatic
#143141 #23556F #31789E #4699C6 #75B3D4

Accessibility & contrast

On white

4.87
#31789E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#31789E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31789E
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31789E#FFFFFF#000000##FFFFFF
##31789E1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6677A0
Deuteranopia (green-blind)
#576C9D
Tritanopia (blue-blind)
#008285
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31789e;
/* rgb */ color: rgb(49, 120, 158);
/* oklch */ color: oklch(54.5% 0.092 235.5);
Tailwind
colors: {
  custom: {
    50: '#769eba',
    500: '#31789e',
    950: '#000000',
  },
}
SCSS
$custom: #31789e;
$custom-light: #769eba;
$custom-dark: #000000;
JSON
{
  "hex": "#31789e",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 158
  },
  "hsl": {
    "h": 200.917,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54481,
    "c": 0.09182,
    "h": 235.5
  },
  "luminance": 0.16555
}

Semantic roles & 50–950 ramp

primary
#31789E
secondary
#BC8A6E
accent
#7E4CDC
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #31789E

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

Preview Lab → · Contrast checker → · Palette generator →

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