#31879D#31879D

#31879D is a mid, moderate cyan. Relative luminance 0.204; OKLCH L 58.2% C 0.087 H 218.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#31879D
RGBrgb(49, 135, 157)
HSLhsl(192, 52%, 40%)
HSVhsv(192, 69%, 62%)
CMYKcmyk(68.8%, 14%, 0%, 38.4%)
CIE-LABlab(52.30, -18.25, -19.23)
CIE-LCHlch(52.30, 26.51, 226.50°)
OKLaboklab(58.15% -0.0684 -0.0536)
OKLCHoklch(58.15% 0.087 218.1)
XYZxyz(16.0139, 20.4135, 34.9880)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31879D #9D4731
analogous
#319D7D #31879D #31519D
triadic
#31879D #9D3187 #879D31
tetradic
#31879D #7D319D #9D4731 #519D31
square
#31879D #7D319D #9D4731 #519D31
split-complementary
#31879D #9D3151 #9D7D31
monochromatic
#143740 #225F6E #31879D #46ABC5 #75C0D4

Accessibility & contrast

On white

4.13
#31879D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#31879D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31879D
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31879D#FFFFFF#000000##000000
##31879D1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#79839E
Deuteranopia (green-blind)
#6A789D
Tritanopia (blue-blind)
#008F8E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #31879d;
/* rgb */ color: rgb(49, 135, 157);
/* oklch */ color: oklch(58.2% 0.087 218.1);
Tailwind
colors: {
  custom: {
    50: '#77aaba',
    500: '#31879d',
    950: '#000000',
  },
}
SCSS
$custom: #31879d;
$custom-light: #77aaba;
$custom-dark: #000000;
JSON
{
  "hex": "#31879d",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 157
  },
  "hsl": {
    "h": 192.222,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.58151,
    "c": 0.08691,
    "h": 218.1
  },
  "luminance": 0.20415
}

Semantic roles & 50–950 ramp

primary
#31879D
secondary
#BC7E6E
accent
#694CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #31879D

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

Preview Lab → · Contrast checker → · Palette generator →

#31879D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva