#338E8B#338E8B

#338E8B is a mid, moderate teal. Relative luminance 0.219; OKLCH L 59.3% C 0.085 H 192.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#338E8B
RGBrgb(51, 142, 139)
HSLhsl(178, 47%, 38%)
HSVhsv(178, 64%, 56%)
CMYKcmyk(64.1%, 0%, 2.1%, 44.3%)
CIE-LABlab(53.93, -27.12, -6.34)
CIE-LCHlch(53.93, 27.85, 193.16°)
OKLaboklab(59.28% -0.0828 -0.0176)
OKLCHoklch(59.28% 0.085 192)
XYZxyz(15.6964, 21.9122, 27.8233)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E8B #8E3336
analogous
#338E5D #338E8B #33638E
triadic
#338E8B #8B338E #8E8B33
tetradic
#338E8B #5D338E #8E3336 #638E33
square
#338E8B #5D338E #8E3336 #638E33
split-complementary
#338E8B #8E3363 #8E5D33
monochromatic
#133433 #23615F #338E8B #43BBB7 #70CCC9

Accessibility & contrast

On white

3.90
#338E8B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#338E8B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E8B
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E8B#FFFFFF#000000##000000
##338E8B1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#86878B
Deuteranopia (green-blind)
#777D8C
Tritanopia (blue-blind)
#00928D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338e8b;
/* rgb */ color: rgb(51, 142, 139);
/* oklch */ color: oklch(59.3% 0.085 192.0);
Tailwind
colors: {
  custom: {
    50: '#77afac',
    500: '#338e8b',
    950: '#000000',
  },
}
SCSS
$custom: #338e8b;
$custom-light: #77afac;
$custom-dark: #000000;
JSON
{
  "hex": "#338e8b",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 139
  },
  "hsl": {
    "h": 178.022,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.59278,
    "c": 0.0847,
    "h": 192
  },
  "luminance": 0.21914
}

Semantic roles & 50–950 ramp

primary
#338E8B
secondary
#B4696C
accent
#5155D7
background
#F7FAFA
surface
#EEF4F4
border
#C9CECE
text
#091010
muted
#7B7F7F

Preview Lab

Preview with #338E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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