#338771#338771

#338771 is a mid, moderate teal. Relative luminance 0.192; OKLCH L 56.6% C 0.088 H 172.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#338771
RGBrgb(51, 135, 113)
HSLhsl(164, 45%, 36%)
HSVhsv(164, 62%, 53%)
CMYKcmyk(62.2%, 0%, 16.3%, 47.1%)
CIE-LABlab(50.95, -30.89, 4.37)
CIE-LCHlch(50.95, 31.20, 171.96°)
OKLaboklab(56.6% -0.0874 0.0111)
OKLCHoklch(56.6% 0.088 172.8)
XYZxyz(13.0084, 19.2227, 18.6444)
Luminance0.1922 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338771 #873349
analogous
#338747 #338771 #337387
triadic
#338771 #713387 #877133
tetradic
#338771 #473387 #873349 #738733
square
#338771 #473387 #873349 #738733
split-complementary
#338771 #873373 #874733
monochromatic
#112E27 #225B4C #338771 #44B396 #6DC8B0

Accessibility & contrast

On white

4.33
#338771 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#338771 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338771
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338771#FFFFFF#000000##000000
##3387711.004.334.844.84
#FFFFFF4.331.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#837F70
Deuteranopia (green-blind)
#777673
Tritanopia (blue-blind)
#008881
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338771;
/* rgb */ color: rgb(51, 135, 113);
/* oklch */ color: oklch(56.6% 0.088 172.8);
Tailwind
colors: {
  custom: {
    50: '#74aa99',
    500: '#338771',
    950: '#000000',
  },
}
SCSS
$custom: #338771;
$custom-light: #74aa99;
$custom-dark: #000000;
JSON
{
  "hex": "#338771",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 113
  },
  "hsl": {
    "h": 164.286,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56604,
    "c": 0.08811,
    "h": 172.8
  },
  "luminance": 0.19224
}

Semantic roles & 50–950 ramp

primary
#338771
secondary
#B06679
accent
#5375D5
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #338771

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

Preview Lab → · Contrast checker → · Palette generator →

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