#338FA4#338FA4

#338FA4 is a mid, moderate cyan. Relative luminance 0.230; OKLCH L 60.5% C 0.090 H 215.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#338FA4
RGBrgb(51, 143, 164)
HSLhsl(191, 53%, 42%)
HSVhsv(191, 69%, 64%)
CMYKcmyk(68.9%, 12.8%, 0%, 35.7%)
CIE-LABlab(55.10, -19.94, -18.98)
CIE-LCHlch(55.10, 27.53, 223.59°)
OKLaboklab(60.5% -0.073 -0.0529)
OKLCHoklch(60.5% 0.09 215.9)
XYZxyz(17.8858, 23.0271, 38.6168)
Luminance0.2303 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338FA4 #A44833
analogous
#33A480 #338FA4 #3357A4
triadic
#338FA4 #A4338F #8FA433
tetradic
#338FA4 #8033A4 #A44833 #57A433
square
#338FA4 #8033A4 #A44833 #57A433
split-complementary
#338FA4 #A43357 #A48033
monochromatic
#163E47 #246675 #338FA4 #4DB1C8 #7BC5D6

Accessibility & contrast

On white

3.75
#338FA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#338FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338FA4
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338FA4#FFFFFF#000000##000000
##338FA41.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#818BA5
Deuteranopia (green-blind)
#717FA4
Tritanopia (blue-blind)
#009796
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #338fa4;
/* rgb */ color: rgb(51, 143, 164);
/* oklch */ color: oklch(60.5% 0.090 215.9);
Tailwind
colors: {
  custom: {
    50: '#79b0bf',
    500: '#338fa4',
    950: '#000000',
  },
}
SCSS
$custom: #338fa4;
$custom-light: #79b0bf;
$custom-dark: #000000;
JSON
{
  "hex": "#338fa4",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 164
  },
  "hsl": {
    "h": 191.15,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.60502,
    "c": 0.09011,
    "h": 215.9
  },
  "luminance": 0.23029
}

Semantic roles & 50–950 ramp

primary
#338FA4
secondary
#BF8274
accent
#674CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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