#338EA4#338EA4

#338EA4 is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.3% C 0.090 H 217.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#338EA4
RGBrgb(51, 142, 164)
HSLhsl(192, 53%, 42%)
HSVhsv(192, 69%, 64%)
CMYKcmyk(68.9%, 13.4%, 0%, 35.7%)
CIE-LABlab(54.79, -19.41, -19.45)
CIE-LCHlch(54.79, 27.48, 225.06°)
OKLaboklab(60.25% -0.0719 -0.0542)
OKLCHoklch(60.25% 0.09 217)
XYZxyz(17.7363, 22.7282, 38.5670)
Luminance0.2273 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA4 #A44933
analogous
#33A481 #338EA4 #3356A4
triadic
#338EA4 #A4338E #8EA433
tetradic
#338EA4 #8133A4 #A44933 #56A433
square
#338EA4 #8133A4 #A44933 #56A433
split-complementary
#338EA4 #A43356 #A48133
monochromatic
#163D47 #246675 #338EA4 #4DB0C8 #7BC4D6

Accessibility & contrast

On white

3.79
#338EA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#338EA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA4
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA4#FFFFFF#000000##000000
##338EA41.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F8AA5
Deuteranopia (green-blind)
#6F7EA4
Tritanopia (blue-blind)
#009695
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea4;
/* rgb */ color: rgb(51, 142, 164);
/* oklch */ color: oklch(60.3% 0.090 217.0);
Tailwind
colors: {
  custom: {
    50: '#79afbf',
    500: '#338ea4',
    950: '#000000',
  },
}
SCSS
$custom: #338ea4;
$custom-light: #79afbf;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea4",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 164
  },
  "hsl": {
    "h": 191.681,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.60254,
    "c": 0.09006,
    "h": 217
  },
  "luminance": 0.2273
}

Semantic roles & 50–950 ramp

primary
#338EA4
secondary
#BF8374
accent
#684CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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