#338C8A#338C8A

#338C8A is a mid, moderate teal. Relative luminance 0.213; OKLCH L 58.7% C 0.083 H 193.0°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#338C8A
RGBrgb(51, 140, 138)
HSLhsl(179, 47%, 37%)
HSVhsv(179, 64%, 55%)
CMYKcmyk(63.6%, 0%, 1.4%, 45.1%)
CIE-LABlab(53.27, -26.41, -6.75)
CIE-LCHlch(53.27, 27.26, 194.33°)
OKLaboklab(58.73% -0.0811 -0.0188)
OKLCHoklch(58.73% 0.083 193)
XYZxyz(15.3287, 21.2933, 27.3420)
Luminance0.2130 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C8A #8C3335
analogous
#338C5E #338C8A #33618C
triadic
#338C8A #8A338C #8C8A33
tetradic
#338C8A #5E338C #8C3335 #618C33
square
#338C8A #5E338C #8C3335 #618C33
split-complementary
#338C8A #8C3361 #8C5E33
monochromatic
#123232 #235F5E #338C8A #43B9B6 #6FCBC8

Accessibility & contrast

On white

3.99
#338C8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#338C8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C8A
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C8A#FFFFFF#000000##000000
##338C8A1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84858A
Deuteranopia (green-blind)
#767B8B
Tritanopia (blue-blind)
#00908B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #338c8a;
/* rgb */ color: rgb(51, 140, 138);
/* oklch */ color: oklch(58.7% 0.083 193.0);
Tailwind
colors: {
  custom: {
    50: '#76aeac',
    500: '#338c8a',
    950: '#000000',
  },
}
SCSS
$custom: #338c8a;
$custom-light: #76aeac;
$custom-dark: #000000;
JSON
{
  "hex": "#338c8a",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 138
  },
  "hsl": {
    "h": 178.652,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.58729,
    "c": 0.08323,
    "h": 193
  },
  "luminance": 0.21295
}

Semantic roles & 50–950 ramp

primary
#338C8A
secondary
#B2686A
accent
#5255D6
background
#F7FAFA
surface
#EEF4F4
border
#C9CECE
text
#091010
muted
#7B7F7F

Preview Lab

Preview with #338C8A

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

Preview Lab → · Contrast checker → · Palette generator →

#338C8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva