#338D9B#338D9B

#338D9B is a mid, moderate teal. Relative luminance 0.221; OKLCH L 59.6% C 0.086 H 209.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#338D9B
RGBrgb(51, 141, 155)
HSLhsl(188, 50%, 40%)
HSVhsv(188, 67%, 61%)
CMYKcmyk(67.1%, 9%, 0%, 39.2%)
CIE-LABlab(54.15, -21.75, -15.25)
CIE-LCHlch(54.15, 26.57, 215.03°)
OKLaboklab(59.63% -0.0746 -0.0423)
OKLCHoklch(59.63% 0.086 209.6)
XYZxyz(16.8040, 22.1183, 34.3876)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D9B #9B4133
analogous
#339B75 #338D9B #33599B
triadic
#338D9B #9B338D #8D9B33
tetradic
#338D9B #75339B #9B4133 #599B33
square
#338D9B #75339B #9B4133 #599B33
split-complementary
#338D9B #9B3359 #9B7533
monochromatic
#15393F #24636D #338D9B #48B2C3 #76C6D2

Accessibility & contrast

On white

3.87
#338D9B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#338D9B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D9B
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D9B#FFFFFF#000000##000000
##338D9B1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#81889C
Deuteranopia (green-blind)
#717D9B
Tritanopia (blue-blind)
#009391
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338d9b;
/* rgb */ color: rgb(51, 141, 155);
/* oklch */ color: oklch(59.6% 0.086 209.6);
Tailwind
colors: {
  custom: {
    50: '#78aeb8',
    500: '#338d9b',
    950: '#000000',
  },
}
SCSS
$custom: #338d9b;
$custom-light: #78aeb8;
$custom-dark: #000000;
JSON
{
  "hex": "#338d9b",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 155
  },
  "hsl": {
    "h": 188.077,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.59631,
    "c": 0.0858,
    "h": 209.6
  },
  "luminance": 0.2212
}

Semantic roles & 50–950 ramp

primary
#338D9B
secondary
#BA796F
accent
#614EDA
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #338D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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