#338779#338779

#338779 is a mid, moderate teal. Relative luminance 0.194; OKLCH L 56.9% C 0.084 H 180.3°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#338779
RGBrgb(51, 135, 121)
HSLhsl(170, 45%, 36%)
HSVhsv(170, 62%, 53%)
CMYKcmyk(62.2%, 0%, 10.4%, 47.1%)
CIE-LABlab(51.16, -28.76, 0.02)
CIE-LCHlch(51.16, 28.76, 179.95°)
OKLaboklab(56.85% -0.0835 -0.0004)
OKLCHoklch(56.85% 0.084 180.3)
XYZxyz(13.4788, 19.4108, 21.1218)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338779 #873341
analogous
#33874F #338779 #336B87
triadic
#338779 #793387 #877933
tetradic
#338779 #4F3387 #873341 #6B8733
square
#338779 #4F3387 #873341 #6B8733
split-complementary
#338779 #87336B #874F33
monochromatic
#112E29 #225B51 #338779 #44B3A1 #6DC8B9

Accessibility & contrast

On white

4.30
#338779 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#338779 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338779
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338779#FFFFFF#000000##000000
##3387791.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#817F78
Deuteranopia (green-blind)
#75767A
Tritanopia (blue-blind)
#008983
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338779;
/* rgb */ color: rgb(51, 135, 121);
/* oklch */ color: oklch(56.9% 0.084 180.3);
Tailwind
colors: {
  custom: {
    50: '#74aa9f',
    500: '#338779',
    950: '#000000',
  },
}
SCSS
$custom: #338779;
$custom-light: #74aa9f;
$custom-dark: #000000;
JSON
{
  "hex": "#338779",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 121
  },
  "hsl": {
    "h": 170,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56853,
    "c": 0.08351,
    "h": 180.3
  },
  "luminance": 0.19412
}

Semantic roles & 50–950 ramp

primary
#338779
secondary
#B06672
accent
#5369D5
background
#F7FAF9
surface
#EDF4F2
border
#C8CECC
text
#09100E
muted
#7B7F7E

Preview Lab

Preview with #338779

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

Preview Lab → · Contrast checker → · Palette generator →

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