#338F9B#338F9B

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

Color values

HEX#338F9B
RGBrgb(51, 143, 155)
HSLhsl(187, 50%, 40%)
HSVhsv(187, 67%, 61%)
CMYKcmyk(67.1%, 7.7%, 0%, 39.2%)
CIE-LABlab(54.78, -22.80, -14.30)
CIE-LCHlch(54.78, 26.91, 212.11°)
OKLaboklab(60.13% -0.0768 -0.0397)
OKLCHoklch(60.13% 0.086 207.3)
XYZxyz(17.1016, 22.7134, 34.4868)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F9B #9B3F33
analogous
#339B73 #338F9B #335B9B
triadic
#338F9B #9B338F #8F9B33
tetradic
#338F9B #73339B #9B3F33 #5B9B33
square
#338F9B #73339B #9B3F33 #5B9B33
split-complementary
#338F9B #9B335B #9B7333
monochromatic
#153A3F #24656D #338F9B #48B5C3 #76C7D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F9B#FFFFFF#000000##000000
##338F9B1.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)
#838A9C
Deuteranopia (green-blind)
#747E9B
Tritanopia (blue-blind)
#009593
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338f9b;
/* rgb */ color: rgb(51, 143, 155);
/* oklch */ color: oklch(60.1% 0.086 207.3);
Tailwind
colors: {
  custom: {
    50: '#78b0b8',
    500: '#338f9b',
    950: '#000000',
  },
}
SCSS
$custom: #338f9b;
$custom-light: #78b0b8;
$custom-dark: #000000;
JSON
{
  "hex": "#338f9b",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 155
  },
  "hsl": {
    "h": 186.923,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.60133,
    "c": 0.08642,
    "h": 207.3
  },
  "luminance": 0.22715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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