#31789A#31789A

#31789A is a mid, moderate cyan. Relative luminance 0.164; OKLCH L 54.3% C 0.088 H 232.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#31789A
RGBrgb(49, 120, 154)
HSLhsl(199, 52%, 40%)
HSVhsv(199, 68%, 60%)
CMYKcmyk(68.2%, 22.1%, 0%, 39.6%)
CIE-LABlab(47.52, -10.90, -24.84)
CIE-LCHlch(47.52, 27.13, 246.30°)
OKLaboklab(54.29% -0.0535 -0.0696)
OKLCHoklch(54.29% 0.088 232.5)
XYZxyz(13.8135, 16.4175, 33.0065)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31789A #9A5331
analogous
#319A88 #31789A #31439A
triadic
#31789A #9A3178 #789A31
tetradic
#31789A #88319A #9A5331 #439A31
square
#31789A #88319A #9A5331 #439A31
split-complementary
#31789A #9A3143 #9A8831
monochromatic
#13303D #22546C #31789A #459AC4 #73B4D2

Accessibility & contrast

On white

4.90
#31789A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#31789A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31789A
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31789A#FFFFFF#000000##FFFFFF
##31789A1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#67779C
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#008183
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #31789a;
/* rgb */ color: rgb(49, 120, 154);
/* oklch */ color: oklch(54.3% 0.088 232.5);
Tailwind
colors: {
  custom: {
    50: '#769fb8',
    500: '#31789a',
    950: '#000000',
  },
}
SCSS
$custom: #31789a;
$custom-light: #769fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#31789a",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 154
  },
  "hsl": {
    "h": 199.429,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54285,
    "c": 0.08784,
    "h": 232.5
  },
  "luminance": 0.16419
}

Semantic roles & 50–950 ramp

primary
#31789A
secondary
#BA866C
accent
#7B4DDB
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #31789A

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

Preview Lab → · Contrast checker → · Palette generator →

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