#31788F#31788F

#31788F is a mid, moderate cyan. Relative luminance 0.161; OKLCH L 53.8% C 0.079 H 222.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#31788F
RGBrgb(49, 120, 143)
HSLhsl(195, 49%, 38%)
HSVhsv(195, 66%, 56%)
CMYKcmyk(65.7%, 16.1%, 0%, 43.9%)
CIE-LABlab(47.06, -14.61, -19.06)
CIE-LCHlch(47.06, 24.01, 232.52°)
OKLaboklab(53.77% -0.0578 -0.0531)
OKLCHoklch(53.77% 0.079 222.6)
XYZxyz(12.9390, 16.0677, 28.4008)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31788F #8F4831
analogous
#318F77 #31788F #31498F
triadic
#31788F #8F3178 #788F31
tetradic
#31788F #77318F #8F4831 #498F31
square
#31788F #77318F #8F4831 #498F31
split-complementary
#31788F #8F3149 #8F7731
monochromatic
#122B34 #215261 #31788F #419EBD #6DB6CD

Accessibility & contrast

On white

4.98
#31788F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#31788F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31788F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31788F#FFFFFF#000000##FFFFFF
##31788F1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B7590
Deuteranopia (green-blind)
#5D6B8F
Tritanopia (blue-blind)
#007F7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #31788f;
/* rgb */ color: rgb(49, 120, 143);
/* oklch */ color: oklch(53.8% 0.079 222.6);
Tailwind
colors: {
  custom: {
    50: '#749faf',
    500: '#31788f',
    950: '#000000',
  },
}
SCSS
$custom: #31788f;
$custom-light: #749faf;
$custom-dark: #000000;
JSON
{
  "hex": "#31788f",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 143
  },
  "hsl": {
    "h": 194.681,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.53772,
    "c": 0.07851,
    "h": 222.6
  },
  "luminance": 0.16069
}

Semantic roles & 50–950 ramp

primary
#31788F
secondary
#B57A67
accent
#714FD9
background
#F7F9FA
surface
#EDF2F4
border
#C8CCCE
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #31788F

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

Preview Lab → · Contrast checker → · Palette generator →

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