#31878F#31878F

#31878F is a mid, moderate teal. Relative luminance 0.200; OKLCH L 57.6% C 0.081 H 203.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#31878F
RGBrgb(49, 135, 143)
HSLhsl(185, 49%, 38%)
HSVhsv(185, 66%, 56%)
CMYKcmyk(65.7%, 5.6%, 0%, 43.9%)
CIE-LABlab(51.79, -22.70, -11.87)
CIE-LCHlch(51.79, 25.62, 207.60°)
OKLaboklab(57.58% -0.0744 -0.0329)
OKLCHoklch(57.58% 0.081 203.8)
XYZxyz(14.8864, 19.9625, 29.0499)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31878F #8F3931
analogous
#318F68 #31878F #31588F
triadic
#31878F #8F3187 #878F31
tetradic
#31878F #68318F #8F3931 #588F31
square
#31878F #68318F #8F3931 #588F31
split-complementary
#31878F #8F3158 #8F6831
monochromatic
#123134 #215C61 #31878F #41B2BD #6DC5CD

Accessibility & contrast

On white

4.21
#31878F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#31878F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31878F
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31878F#FFFFFF#000000##000000
##31878F1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D8190
Deuteranopia (green-blind)
#6E778F
Tritanopia (blue-blind)
#008C89
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #31878f;
/* rgb */ color: rgb(49, 135, 143);
/* oklch */ color: oklch(57.6% 0.081 203.8);
Tailwind
colors: {
  custom: {
    50: '#75aaaf',
    500: '#31878f',
    950: '#000000',
  },
}
SCSS
$custom: #31878f;
$custom-light: #75aaaf;
$custom-dark: #000000;
JSON
{
  "hex": "#31878f",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 143
  },
  "hsl": {
    "h": 185.106,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57575,
    "c": 0.08135,
    "h": 203.8
  },
  "luminance": 0.19964
}

Semantic roles & 50–950 ramp

primary
#31878F
secondary
#B56E67
accent
#5B4FD9
background
#F7FAFA
surface
#EEF4F4
border
#C9CECE
text
#091010
muted
#7B7F7F

Preview Lab

Preview with #31878F

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

Preview Lab → · Contrast checker → · Palette generator →

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