#338E9D#338E9D

#338E9D is a mid, moderate teal. Relative luminance 0.225; OKLCH L 60.0% C 0.087 H 210.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#338E9D
RGBrgb(51, 142, 157)
HSLhsl(188, 51%, 41%)
HSVhsv(188, 68%, 62%)
CMYKcmyk(67.5%, 9.6%, 0%, 38.4%)
CIE-LABlab(54.53, -21.65, -15.82)
CIE-LCHlch(54.53, 26.81, 216.16°)
OKLaboklab(59.96% -0.0748 -0.0439)
OKLCHoklch(59.96% 0.087 210.4)
XYZxyz(17.1215, 22.4822, 35.3289)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E9D #9D4233
analogous
#339D77 #338E9D #33599D
triadic
#338E9D #9D338E #8E9D33
tetradic
#338E9D #77339D #9D4233 #599D33
square
#338E9D #77339D #9D4233 #599D33
split-complementary
#338E9D #9D3359 #9D7733
monochromatic
#153A41 #24646F #338E9D #49B3C4 #77C6D3

Accessibility & contrast

On white

3.82
#338E9D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#338E9D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E9D
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E9D#FFFFFF#000000##000000
##338E9D1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#81899E
Deuteranopia (green-blind)
#727E9D
Tritanopia (blue-blind)
#009593
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338e9d;
/* rgb */ color: rgb(51, 142, 157);
/* oklch */ color: oklch(60.0% 0.087 210.4);
Tailwind
colors: {
  custom: {
    50: '#79afba',
    500: '#338e9d',
    950: '#000000',
  },
}
SCSS
$custom: #338e9d;
$custom-light: #79afba;
$custom-dark: #000000;
JSON
{
  "hex": "#338e9d",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 157
  },
  "hsl": {
    "h": 188.491,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.59963,
    "c": 0.08679,
    "h": 210.4
  },
  "luminance": 0.22484
}

Semantic roles & 50–950 ramp

primary
#338E9D
secondary
#BB7B70
accent
#614DDA
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #338E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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