#338A9C#338A9C

#338A9C is a mid, moderate cyan. Relative luminance 0.213; OKLCH L 58.9% C 0.086 H 214.0°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#338A9C
RGBrgb(51, 138, 156)
HSLhsl(190, 51%, 41%)
HSVhsv(190, 67%, 61%)
CMYKcmyk(67.3%, 11.5%, 0%, 38.8%)
CIE-LABlab(53.25, -19.86, -17.19)
CIE-LCHlch(53.25, 26.26, 220.89°)
OKLaboklab(58.92% -0.071 -0.0478)
OKLCHoklch(58.92% 0.086 214)
XYZxyz(16.4520, 21.2793, 34.6863)
Luminance0.2128 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A9C #9C4533
analogous
#339C79 #338A9C #33559C
triadic
#338A9C #9C338A #8A9C33
tetradic
#338A9C #79339C #9C4533 #559C33
square
#338A9C #79339C #9C4533 #559C33
split-complementary
#338A9C #9C3355 #9C7933
monochromatic
#153840 #24616E #338A9C #49AEC3 #77C3D3

Accessibility & contrast

On white

4.00
#338A9C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#338A9C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A9C
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A9C#FFFFFF#000000##000000
##338A9C1.004.005.265.26
#FFFFFF4.001.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D869D
Deuteranopia (green-blind)
#6E7A9C
Tritanopia (blue-blind)
#009190
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #338a9c;
/* rgb */ color: rgb(51, 138, 156);
/* oklch */ color: oklch(58.9% 0.086 214.0);
Tailwind
colors: {
  custom: {
    50: '#78acb9',
    500: '#338a9c',
    950: '#000000',
  },
}
SCSS
$custom: #338a9c;
$custom-light: #78acb9;
$custom-dark: #000000;
JSON
{
  "hex": "#338a9c",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 156
  },
  "hsl": {
    "h": 190.286,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5892,
    "c": 0.08557,
    "h": 214
  },
  "luminance": 0.21281
}

Semantic roles & 50–950 ramp

primary
#338A9C
secondary
#BB7D70
accent
#664EDA
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1011
muted
#7C7F80

Preview Lab

Preview with #338A9C

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

Preview Lab → · Contrast checker → · Palette generator →

#338A9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva