#338971#338971

#338971 is a mid, moderate teal. Relative luminance 0.198; OKLCH L 57.1% C 0.091 H 171.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338971
RGBrgb(51, 137, 113)
HSLhsl(163, 46%, 37%)
HSVhsv(163, 63%, 54%)
CMYKcmyk(62.8%, 0%, 17.5%, 46.3%)
CIE-LABlab(51.59, -31.84, 5.30)
CIE-LCHlch(51.59, 32.28, 170.56°)
OKLaboklab(57.13% -0.0897 0.0135)
OKLCHoklch(57.13% 0.091 171.4)
XYZxyz(13.2901, 19.7860, 18.7383)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338971 #89334B
analogous
#338946 #338971 #337689
triadic
#338971 #713389 #897133
tetradic
#338971 #463389 #89334B #768933
square
#338971 #463389 #89334B #768933
split-complementary
#338971 #893376 #894633
monochromatic
#123027 #225C4C #338971 #44B696 #6EC9AF

Accessibility & contrast

On white

4.24
#338971 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#338971 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338971
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338971#FFFFFF#000000##000000
##3389711.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#858070
Deuteranopia (green-blind)
#797773
Tritanopia (blue-blind)
#008A82
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338971;
/* rgb */ color: rgb(51, 137, 113);
/* oklch */ color: oklch(57.1% 0.091 171.4);
Tailwind
colors: {
  custom: {
    50: '#74ac99',
    500: '#338971',
    950: '#000000',
  },
}
SCSS
$custom: #338971;
$custom-light: #74ac99;
$custom-dark: #000000;
JSON
{
  "hex": "#338971",
  "rgb": {
    "r": 51,
    "g": 137,
    "b": 113
  },
  "hsl": {
    "h": 163.256,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.57131,
    "c": 0.0907,
    "h": 171.4
  },
  "luminance": 0.19787
}

Semantic roles & 50–950 ramp

primary
#338971
secondary
#B1677C
accent
#5277D5
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #338971

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

Preview Lab → · Contrast checker → · Palette generator →

#338971 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva