#31789F#31789F

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

Color values

HEX#31789F
RGBrgb(49, 120, 159)
HSLhsl(201, 53%, 41%)
HSVhsv(201, 69%, 62%)
CMYKcmyk(69.2%, 24.5%, 0%, 37.6%)
CIE-LABlab(47.74, -9.17, -27.43)
CIE-LCHlch(47.74, 28.93, 251.51°)
OKLaboklab(54.53% -0.0517 -0.0771)
OKLCHoklch(54.53% 0.093 236.2)
XYZxyz(14.2387, 16.5876, 35.2455)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31789F #9F5831
analogous
#319F8F #31789F #31419F
triadic
#31789F #9F3178 #789F31
tetradic
#31789F #8F319F #9F5831 #419F31
square
#31789F #8F319F #9F5831 #419F31
split-complementary
#31789F #9F3141 #9F8F31
monochromatic
#143141 #235570 #31789F #4799C6 #76B3D5

Accessibility & contrast

On white

4.86
#31789F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#31789F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31789F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31789F#FFFFFF#000000##FFFFFF
##31789F1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6577A1
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#008285
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31789f;
/* rgb */ color: rgb(49, 120, 159);
/* oklch */ color: oklch(54.5% 0.093 236.2);
Tailwind
colors: {
  custom: {
    50: '#769ebb',
    500: '#31789f',
    950: '#000000',
  },
}
SCSS
$custom: #31789f;
$custom-light: #769ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#31789f",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 159
  },
  "hsl": {
    "h": 201.273,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54531,
    "c": 0.09285,
    "h": 236.2
  },
  "luminance": 0.16589
}

Semantic roles & 50–950 ramp

primary
#31789F
secondary
#BD8B6F
accent
#7F4CDC
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #31789F

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

Preview Lab → · Contrast checker → · Palette generator →

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