#338797#338797

#338797 is a mid, moderate teal. Relative luminance 0.203; OKLCH L 58.0% C 0.083 H 212.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#338797
RGBrgb(51, 135, 151)
HSLhsl(190, 50%, 40%)
HSVhsv(190, 66%, 59%)
CMYKcmyk(66.2%, 10.6%, 0%, 40.8%)
CIE-LABlab(52.13, -19.85, -16.00)
CIE-LCHlch(52.13, 25.50, 218.86°)
OKLaboklab(57.96% -0.0698 -0.0444)
OKLCHoklch(57.96% 0.083 212.5)
XYZxyz(15.6128, 20.2644, 32.3608)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338797 #974333
analogous
#339775 #338797 #335597
triadic
#338797 #973387 #879733
tetradic
#338797 #753397 #974333 #559733
square
#338797 #753397 #974333 #559733
split-complementary
#338797 #973355 #977533
monochromatic
#14353C #245E69 #338797 #47ADC1 #74C1D0

Accessibility & contrast

On white

4.16
#338797 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#338797 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338797
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338797#FFFFFF#000000##000000
##3387971.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8298
Deuteranopia (green-blind)
#6C7897
Tritanopia (blue-blind)
#008E8C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338797;
/* rgb */ color: rgb(51, 135, 151);
/* oklch */ color: oklch(58.0% 0.083 212.5);
Tailwind
colors: {
  custom: {
    50: '#77aab5',
    500: '#338797',
    950: '#000000',
  },
}
SCSS
$custom: #338797;
$custom-light: #77aab5;
$custom-dark: #000000;
JSON
{
  "hex": "#338797",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 151
  },
  "hsl": {
    "h": 189.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.57959,
    "c": 0.08276,
    "h": 212.5
  },
  "luminance": 0.20266
}

Semantic roles & 50–950 ramp

primary
#338797
secondary
#B8796D
accent
#654FD9
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #338797

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

Preview Lab → · Contrast checker → · Palette generator →

#338797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva