#338E9A#338E9A

#338E9A is a mid, moderate teal. Relative luminance 0.224; OKLCH L 59.8% C 0.086 H 207.5°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#338E9A
RGBrgb(51, 142, 154)
HSLhsl(187, 50%, 40%)
HSVhsv(187, 67%, 60%)
CMYKcmyk(66.9%, 7.8%, 0%, 39.6%)
CIE-LABlab(54.43, -22.59, -14.25)
CIE-LCHlch(54.43, 26.71, 212.25°)
OKLaboklab(59.84% -0.0761 -0.0395)
OKLCHoklch(59.84% 0.086 207.5)
XYZxyz(16.8685, 22.3810, 33.9966)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E9A #9A3F33
analogous
#339A72 #338E9A #335B9A
triadic
#338E9A #9A338E #8E9A33
tetradic
#338E9A #72339A #9A3F33 #5B9A33
square
#338E9A #72339A #9A3F33 #5B9A33
split-complementary
#338E9A #9A335B #9A7233
monochromatic
#15393E #24646C #338E9A #48B4C2 #76C7D2

Accessibility & contrast

On white

3.83
#338E9A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#338E9A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E9A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E9A#FFFFFF#000000##000000
##338E9A1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#82899B
Deuteranopia (green-blind)
#737D9A
Tritanopia (blue-blind)
#009492
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338e9a;
/* rgb */ color: rgb(51, 142, 154);
/* oklch */ color: oklch(59.8% 0.086 207.5);
Tailwind
colors: {
  custom: {
    50: '#78afb7',
    500: '#338e9a',
    950: '#000000',
  },
}
SCSS
$custom: #338e9a;
$custom-light: #78afb7;
$custom-dark: #000000;
JSON
{
  "hex": "#338e9a",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 154
  },
  "hsl": {
    "h": 186.99,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.59842,
    "c": 0.08579,
    "h": 207.5
  },
  "luminance": 0.22383
}

Semantic roles & 50–950 ramp

primary
#338E9A
secondary
#BA786F
accent
#5E4EDA
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #338E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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