#31795A#31795A

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

Color values

HEX#31795A
RGBrgb(49, 121, 90)
HSLhsl(154, 42%, 33%)
HSVhsv(154, 60%, 47%)
CMYKcmyk(59.5%, 0%, 25.6%, 52.5%)
CIE-LABlab(45.72, -30.41, 10.39)
CIE-LCHlch(45.72, 32.14, 161.15°)
OKLaboklab(52.14% -0.0838 0.0266)
OKLCHoklch(52.14% 0.088 162.4)
XYZxyz(9.9485, 15.0650, 12.0544)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31795A #793150
analogous
#317936 #31795A #317479
triadic
#31795A #5A3179 #795A31
tetradic
#31795A #363179 #793150 #747931
square
#31795A #363179 #793150 #747931
split-complementary
#31795A #793174 #793631
monochromatic
#0E2219 #1F4D3A #31795A #43A57A #64C099

Accessibility & contrast

On white

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

On black

4.01
#31795A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31795A#FFFFFF#000000##FFFFFF
##31795A1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#777158
Deuteranopia (green-blind)
#6D695C
Tritanopia (blue-blind)
#117970
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #31795a;
/* rgb */ color: rgb(49, 121, 90);
/* oklch */ color: oklch(52.1% 0.088 162.4);
Tailwind
colors: {
  custom: {
    50: '#70a088',
    500: '#31795a',
    950: '#000000',
  },
}
SCSS
$custom: #31795a;
$custom-light: #70a088;
$custom-dark: #000000;
JSON
{
  "hex": "#31795a",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 90
  },
  "hsl": {
    "h": 154.167,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.52137,
    "c": 0.08792,
    "h": 162.4
  },
  "luminance": 0.15066
}

Semantic roles & 50–950 ramp

primary
#31795A
secondary
#A85E7E
accent
#568BD2
background
#F7F9F8
surface
#EDF2EF
border
#C8CCCA
text
#080F0B
muted
#7B7E7C

Preview Lab

Preview with #31795A

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

Preview Lab → · Contrast checker → · Palette generator →

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