#31879A#31879A

#31879A is a mid, moderate cyan. Relative luminance 0.203; OKLCH L 58.0% C 0.085 H 215.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#31879A
RGBrgb(49, 135, 154)
HSLhsl(191, 52%, 40%)
HSVhsv(191, 68%, 60%)
CMYKcmyk(68.2%, 12.3%, 0%, 39.6%)
CIE-LABlab(52.19, -19.22, -17.66)
CIE-LCHlch(52.19, 26.10, 222.58°)
OKLaboklab(58.02% -0.0697 -0.0491)
OKLCHoklch(58.02% 0.085 215.2)
XYZxyz(15.7609, 20.3123, 33.6556)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31879A #9A4431
analogous
#319A78 #31879A #31539A
triadic
#31879A #9A3187 #879A31
tetradic
#31879A #78319A #9A4431 #539A31
square
#31879A #78319A #9A4431 #539A31
split-complementary
#31879A #9A3153 #9A7831
monochromatic
#13363D #225E6C #31879A #45ADC4 #73C1D2

Accessibility & contrast

On white

4.15
#31879A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#31879A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31879A
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31879A#FFFFFF#000000##000000
##31879A1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A839B
Deuteranopia (green-blind)
#6B789A
Tritanopia (blue-blind)
#008E8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #31879a;
/* rgb */ color: rgb(49, 135, 154);
/* oklch */ color: oklch(58.0% 0.085 215.2);
Tailwind
colors: {
  custom: {
    50: '#77aab7',
    500: '#31879a',
    950: '#000000',
  },
}
SCSS
$custom: #31879a;
$custom-light: #77aab7;
$custom-dark: #000000;
JSON
{
  "hex": "#31879a",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 154
  },
  "hsl": {
    "h": 190.857,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.58023,
    "c": 0.08526,
    "h": 215.2
  },
  "luminance": 0.20314
}

Semantic roles & 50–950 ramp

primary
#31879A
secondary
#BA7B6C
accent
#664DDB
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #31879A

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

Preview Lab → · Contrast checker → · Palette generator →

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