#338271#338271

#338271 is a mid, moderate teal. Relative luminance 0.179; OKLCH L 55.3% C 0.082 H 176.6°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#338271
RGBrgb(51, 130, 113)
HSLhsl(167, 44%, 35%)
HSVhsv(167, 61%, 51%)
CMYKcmyk(60.8%, 0%, 13.1%, 49%)
CIE-LABlab(49.33, -28.49, 2.02)
CIE-LCHlch(49.33, 28.56, 175.94°)
OKLaboklab(55.29% -0.0816 0.0049)
OKLCHoklch(55.29% 0.082 176.6)
XYZxyz(12.3271, 17.8601, 18.4173)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338271 #823344
analogous
#33824A #338271 #336B82
triadic
#338271 #713382 #827133
tetradic
#338271 #4A3382 #823344 #6B8233
square
#338271 #4A3382 #823344 #6B8233
split-complementary
#338271 #82336B #824A33
monochromatic
#112A25 #22564B #338271 #44AE97 #6BC5B1

Accessibility & contrast

On white

4.59
#338271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#338271 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338271
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338271#FFFFFF#000000##FFFFFF
##3382711.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D7A70
Deuteranopia (green-blind)
#717272
Tritanopia (blue-blind)
#00847D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338271;
/* rgb */ color: rgb(51, 130, 113);
/* oklch */ color: oklch(55.3% 0.082 176.6);
Tailwind
colors: {
  custom: {
    50: '#73a799',
    500: '#338271',
    950: '#000000',
  },
}
SCSS
$custom: #338271;
$custom-light: #73a799;
$custom-dark: #000000;
JSON
{
  "hex": "#338271",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 113
  },
  "hsl": {
    "h": 167.089,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.55285,
    "c": 0.0818,
    "h": 176.6
  },
  "luminance": 0.17861
}

Semantic roles & 50–950 ramp

primary
#338271
secondary
#AD6474
accent
#5470D3
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#090F0E
muted
#7B7F7E

Preview Lab

Preview with #338271

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

Preview Lab → · Contrast checker → · Palette generator →

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