#338F9A#338F9A

#338F9A is a mid, moderate teal. Relative luminance 0.227; OKLCH L 60.1% C 0.086 H 206.3°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#338F9A
RGBrgb(51, 143, 154)
HSLhsl(186, 50%, 40%)
HSVhsv(186, 67%, 60%)
CMYKcmyk(66.9%, 7.1%, 0%, 39.6%)
CIE-LABlab(54.74, -23.11, -13.78)
CIE-LCHlch(54.74, 26.90, 210.81°)
OKLaboklab(60.09% -0.0772 -0.0382)
OKLCHoklch(60.09% 0.086 206.3)
XYZxyz(17.0179, 22.6799, 34.0464)
Luminance0.2268 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F9A #9A3E33
analogous
#339A72 #338F9A #335B9A
triadic
#338F9A #9A338F #8F9A33
tetradic
#338F9A #72339A #9A3E33 #5B9A33
square
#338F9A #72339A #9A3E33 #5B9A33
split-complementary
#338F9A #9A335B #9A7233
monochromatic
#153A3E #24646C #338F9A #48B5C2 #76C8D2

Accessibility & contrast

On white

3.79
#338F9A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#338F9A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F9A
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F9A#FFFFFF#000000##000000
##338F9A1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#83899B
Deuteranopia (green-blind)
#747E9A
Tritanopia (blue-blind)
#009592
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338f9a;
/* rgb */ color: rgb(51, 143, 154);
/* oklch */ color: oklch(60.1% 0.086 206.3);
Tailwind
colors: {
  custom: {
    50: '#78b0b7',
    500: '#338f9a',
    950: '#000000',
  },
}
SCSS
$custom: #338f9a;
$custom-light: #78b0b7;
$custom-dark: #000000;
JSON
{
  "hex": "#338f9a",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 154
  },
  "hsl": {
    "h": 186.408,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.60094,
    "c": 0.08615,
    "h": 206.3
  },
  "luminance": 0.22682
}

Semantic roles & 50–950 ramp

primary
#338F9A
secondary
#BA776F
accent
#5D4EDA
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #338F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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