#338498#338498

#338498 is a mid, moderate cyan. Relative luminance 0.195; OKLCH L 57.2% C 0.083 H 217.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#338498
RGBrgb(51, 132, 152)
HSLhsl(192, 50%, 40%)
HSVhsv(192, 66%, 60%)
CMYKcmyk(66.4%, 13.2%, 0%, 40.4%)
CIE-LABlab(51.23, -17.92, -17.95)
CIE-LCHlch(51.23, 25.36, 225.04°)
OKLaboklab(57.25% -0.0661 -0.0499)
OKLCHoklch(57.25% 0.083 217.1)
XYZxyz(15.2817, 19.4717, 32.6527)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338498 #984733
analogous
#33987A #338498 #335298
triadic
#338498 #983384 #849833
tetradic
#338498 #7A3398 #984733 #529833
square
#338498 #7A3398 #984733 #529833
split-complementary
#338498 #983352 #987A33
monochromatic
#14343C #245C6A #338498 #47A9C1 #75BED1

Accessibility & contrast

On white

4.29
#338498 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#338498 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338498
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338498#FFFFFF#000000##000000
##3384981.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#778099
Deuteranopia (green-blind)
#687598
Tritanopia (blue-blind)
#008B8A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338498;
/* rgb */ color: rgb(51, 132, 152);
/* oklch */ color: oklch(57.2% 0.083 217.1);
Tailwind
colors: {
  custom: {
    50: '#77a8b6',
    500: '#338498',
    950: '#000000',
  },
}
SCSS
$custom: #338498;
$custom-light: #77a8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#338498",
  "rgb": {
    "r": 51,
    "g": 132,
    "b": 152
  },
  "hsl": {
    "h": 191.881,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.57248,
    "c": 0.08287,
    "h": 217.1
  },
  "luminance": 0.19473
}

Semantic roles & 50–950 ramp

primary
#338498
secondary
#B97D6E
accent
#6A4FD9
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A0F11
muted
#7C7F80

Preview Lab

Preview with #338498

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

Preview Lab → · Contrast checker → · Palette generator →

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