#338B7C#338B7C

#338B7C is a mid, moderate teal. Relative luminance 0.206; OKLCH L 58.0% C 0.087 H 179.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#338B7C
RGBrgb(51, 139, 124)
HSLhsl(170, 46%, 37%)
HSVhsv(170, 63%, 55%)
CMYKcmyk(63.3%, 0%, 10.8%, 45.5%)
CIE-LABlab(52.53, -29.88, 0.28)
CIE-LCHlch(52.53, 29.88, 179.46°)
OKLaboklab(57.99% -0.0866 0.0003)
OKLCHoklch(57.99% 0.087 179.8)
XYZxyz(14.2343, 20.6228, 22.2953)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B7C #8B3342
analogous
#338B50 #338B7C #336E8B
triadic
#338B7C #7C338B #8B7C33
tetradic
#338B7C #50338B #8B3342 #6E8B33
square
#338B7C #50338B #8B3342 #6E8B33
split-complementary
#338B7C #8B336E #8B5033
monochromatic
#12312C #235E54 #338B7C #43B8A4 #6ECABA

Accessibility & contrast

On white

4.10
#338B7C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#338B7C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B7C
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B7C#FFFFFF#000000##000000
##338B7C1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#85837B
Deuteranopia (green-blind)
#78797D
Tritanopia (blue-blind)
#008D86
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338b7c;
/* rgb */ color: rgb(51, 139, 124);
/* oklch */ color: oklch(58.0% 0.087 179.8);
Tailwind
colors: {
  custom: {
    50: '#75ada1',
    500: '#338b7c',
    950: '#000000',
  },
}
SCSS
$custom: #338b7c;
$custom-light: #75ada1;
$custom-dark: #000000;
JSON
{
  "hex": "#338b7c",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 124
  },
  "hsl": {
    "h": 169.773,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57994,
    "c": 0.08658,
    "h": 179.8
  },
  "luminance": 0.20624
}

Semantic roles & 50–950 ramp

primary
#338B7C
secondary
#B26875
accent
#5268D6
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100F
muted
#7B7F7E

Preview Lab

Preview with #338B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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