#338B78#338B78

#338B78 is a mid, moderate teal. Relative luminance 0.205; OKLCH L 57.9% C 0.089 H 176.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#338B78
RGBrgb(51, 139, 120)
HSLhsl(167, 46%, 37%)
HSVhsv(167, 63%, 55%)
CMYKcmyk(63.3%, 0%, 13.7%, 45.5%)
CIE-LABlab(52.42, -30.96, 2.44)
CIE-LCHlch(52.42, 31.05, 175.50°)
OKLaboklab(57.87% -0.0885 0.006)
OKLCHoklch(57.87% 0.089 176.1)
XYZxyz(13.9864, 20.5236, 20.9900)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B78 #8B3346
analogous
#338B4C #338B78 #33728B
triadic
#338B78 #78338B #8B7833
tetradic
#338B78 #4C338B #8B3346 #728B33
square
#338B78 #4C338B #8B3346 #728B33
split-complementary
#338B78 #8B3372 #8B4C33
monochromatic
#12312B #235E51 #338B78 #43B89F #6ECAB6

Accessibility & contrast

On white

4.11
#338B78 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#338B78 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B78
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B78#FFFFFF#000000##000000
##338B781.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#868377
Deuteranopia (green-blind)
#797979
Tritanopia (blue-blind)
#008D85
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338b78;
/* rgb */ color: rgb(51, 139, 120);
/* oklch */ color: oklch(57.9% 0.089 176.1);
Tailwind
colors: {
  custom: {
    50: '#75ad9e',
    500: '#338b78',
    950: '#000000',
  },
}
SCSS
$custom: #338b78;
$custom-light: #75ad9e;
$custom-dark: #000000;
JSON
{
  "hex": "#338b78",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 120
  },
  "hsl": {
    "h": 167.045,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57868,
    "c": 0.08872,
    "h": 176.1
  },
  "luminance": 0.20525
}

Semantic roles & 50–950 ramp

primary
#338B78
secondary
#B26878
accent
#526ED6
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #338B78

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

Preview Lab → · Contrast checker → · Palette generator →

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