#338768#338768

#338768 is a mid, moderate teal. Relative luminance 0.190; OKLCH L 56.3% C 0.095 H 165.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#338768
RGBrgb(51, 135, 104)
HSLhsl(158, 45%, 36%)
HSVhsv(158, 62%, 53%)
CMYKcmyk(62.2%, 0%, 23%, 47.1%)
CIE-LABlab(50.72, -33.15, 9.26)
CIE-LCHlch(50.72, 34.42, 164.39°)
OKLaboklab(56.35% -0.0919 0.0237)
OKLCHoklch(56.35% 0.095 165.5)
XYZxyz(12.5266, 19.0300, 16.1070)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338768 #873352
analogous
#33873E #338768 #337C87
triadic
#338768 #683387 #876833
tetradic
#338768 #3E3387 #873352 #7C8733
square
#338768 #3E3387 #873352 #7C8733
split-complementary
#338768 #87337C #873E33
monochromatic
#112E24 #225B46 #338768 #44B38A #6DC8A6

Accessibility & contrast

On white

4.37
#338768 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#338768 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338768
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338768#FFFFFF#000000##000000
##3387681.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847E66
Deuteranopia (green-blind)
#78756A
Tritanopia (blue-blind)
#00877E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338768;
/* rgb */ color: rgb(51, 135, 104);
/* oklch */ color: oklch(56.3% 0.095 165.5);
Tailwind
colors: {
  custom: {
    50: '#74aa93',
    500: '#338768',
    950: '#000000',
  },
}
SCSS
$custom: #338768;
$custom-light: #74aa93;
$custom-dark: #000000;
JSON
{
  "hex": "#338768",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 104
  },
  "hsl": {
    "h": 157.857,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56346,
    "c": 0.09488,
    "h": 165.5
  },
  "luminance": 0.19031
}

Semantic roles & 50–950 ramp

primary
#338768
secondary
#B06681
accent
#5383D5
background
#F7FAF9
surface
#EDF4F1
border
#C8CECB
text
#09100D
muted
#7B7F7E

Preview Lab

Preview with #338768

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

Preview Lab → · Contrast checker → · Palette generator →

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