#338A79#338A79

#338A79 is a mid, moderate teal. Relative luminance 0.203; OKLCH L 57.6% C 0.087 H 177.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#338A79
RGBrgb(51, 138, 121)
HSLhsl(168, 46%, 37%)
HSVhsv(168, 63%, 54%)
CMYKcmyk(63%, 0%, 12.3%, 45.9%)
CIE-LABlab(52.13, -30.21, 1.43)
CIE-LCHlch(52.13, 30.25, 177.29°)
OKLaboklab(57.64% -0.0869 0.0033)
OKLCHoklch(57.64% 0.087 177.8)
XYZxyz(13.9033, 20.2598, 21.2633)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A79 #8A3344
analogous
#338A4E #338A79 #33708A
triadic
#338A79 #79338A #8A7933
tetradic
#338A79 #4E338A #8A3344 #708A33
square
#338A79 #4E338A #8A3344 #708A33
split-complementary
#338A79 #8A3370 #8A4E33
monochromatic
#12312B #225D52 #338A79 #44B7A0 #6EC9B8

Accessibility & contrast

On white

4.16
#338A79 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#338A79 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A79
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A79#FFFFFF#000000##000000
##338A791.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#858278
Deuteranopia (green-blind)
#78787A
Tritanopia (blue-blind)
#008C85
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338a79;
/* rgb */ color: rgb(51, 138, 121);
/* oklch */ color: oklch(57.6% 0.087 177.8);
Tailwind
colors: {
  custom: {
    50: '#75ac9f',
    500: '#338a79',
    950: '#000000',
  },
}
SCSS
$custom: #338a79;
$custom-light: #75ac9f;
$custom-dark: #000000;
JSON
{
  "hex": "#338a79",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 121
  },
  "hsl": {
    "h": 168.276,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.57638,
    "c": 0.08697,
    "h": 177.8
  },
  "luminance": 0.20261
}

Semantic roles & 50–950 ramp

primary
#338A79
secondary
#B16776
accent
#526CD6
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #338A79

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

Preview Lab → · Contrast checker → · Palette generator →

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