#31795B#31795B

#31795B is a mid, moderate teal. Relative luminance 0.151; OKLCH L 52.2% C 0.087 H 163.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#31795B
RGBrgb(49, 121, 91)
HSLhsl(155, 42%, 33%)
HSVhsv(155, 60%, 47%)
CMYKcmyk(59.5%, 0%, 24.8%, 52.5%)
CIE-LABlab(45.75, -30.17, 9.83)
CIE-LCHlch(45.75, 31.73, 161.96°)
OKLaboklab(52.16% -0.0833 0.0252)
OKLCHoklch(52.16% 0.087 163.2)
XYZxyz(9.9914, 15.0821, 12.2801)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31795B #79314F
analogous
#317937 #31795B #317379
triadic
#31795B #5B3179 #795B31
tetradic
#31795B #373179 #79314F #737931
square
#31795B #373179 #79314F #737931
split-complementary
#31795B #793173 #793731
monochromatic
#0E2219 #1F4D3A #31795B #43A57C #64C09A

Accessibility & contrast

On white

5.23
#31795B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#31795B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31795B
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31795B#FFFFFF#000000##FFFFFF
##31795B1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#777159
Deuteranopia (green-blind)
#6D695D
Tritanopia (blue-blind)
#107971
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31795b;
/* rgb */ color: rgb(49, 121, 91);
/* oklch */ color: oklch(52.2% 0.087 163.2);
Tailwind
colors: {
  custom: {
    50: '#70a089',
    500: '#31795b',
    950: '#000000',
  },
}
SCSS
$custom: #31795b;
$custom-light: #70a089;
$custom-dark: #000000;
JSON
{
  "hex": "#31795b",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 91
  },
  "hsl": {
    "h": 155,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52164,
    "c": 0.08702,
    "h": 163.2
  },
  "luminance": 0.15083
}

Semantic roles & 50–950 ramp

primary
#31795B
secondary
#A85E7D
accent
#568AD2
background
#F7F9F8
surface
#EDF2F0
border
#C8CCCB
text
#080F0B
muted
#7B7E7C

Preview Lab

Preview with #31795B

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

Preview Lab → · Contrast checker → · Palette generator →

#31795B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva