#338B7E#338B7E

#338B7E is a mid, moderate teal. Relative luminance 0.207; OKLCH L 58.1% C 0.086 H 181.8°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#338B7E
RGBrgb(51, 139, 126)
HSLhsl(171, 46%, 37%)
HSVhsv(171, 63%, 55%)
CMYKcmyk(63.3%, 0%, 9.4%, 45.5%)
CIE-LABlab(52.59, -29.33, -0.80)
CIE-LCHlch(52.59, 29.35, 181.56°)
OKLaboklab(58.06% -0.0856 -0.0026)
OKLCHoklch(58.06% 0.086 181.8)
XYZxyz(14.3620, 20.6739, 22.9682)
Luminance0.2067 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B7E #8B3340
analogous
#338B52 #338B7E #336C8B
triadic
#338B7E #7E338B #8B7E33
tetradic
#338B7E #52338B #8B3340 #6C8B33
square
#338B7E #52338B #8B3340 #6C8B33
split-complementary
#338B7E #8B336C #8B5233
monochromatic
#12312D #235E55 #338B7E #43B8A7 #6ECABC

Accessibility & contrast

On white

4.09
#338B7E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#338B7E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B7E
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B7E#FFFFFF#000000##000000
##338B7E1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#85837E
Deuteranopia (green-blind)
#78797F
Tritanopia (blue-blind)
#008E87
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338b7e;
/* rgb */ color: rgb(51, 139, 126);
/* oklch */ color: oklch(58.1% 0.086 181.8);
Tailwind
colors: {
  custom: {
    50: '#75ada3',
    500: '#338b7e',
    950: '#000000',
  },
}
SCSS
$custom: #338b7e;
$custom-light: #75ada3;
$custom-dark: #000000;
JSON
{
  "hex": "#338b7e",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 126
  },
  "hsl": {
    "h": 171.136,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.58059,
    "c": 0.08566,
    "h": 181.8
  },
  "luminance": 0.20675
}

Semantic roles & 50–950 ramp

primary
#338B7E
secondary
#B26873
accent
#5265D6
background
#F7FAFA
surface
#EDF4F3
border
#C8CECD
text
#09100F
muted
#7B7F7F

Preview Lab

Preview with #338B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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