#338AA4#338AA4

#338AA4 is a mid, moderate cyan. Relative luminance 0.216; OKLCH L 59.3% C 0.090 H 221.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#338AA4
RGBrgb(51, 138, 164)
HSLhsl(194, 53%, 42%)
HSVhsv(194, 69%, 64%)
CMYKcmyk(68.9%, 15.9%, 0%, 35.7%)
CIE-LABlab(53.56, -17.26, -21.35)
CIE-LCHlch(53.56, 27.45, 231.04°)
OKLaboklab(59.26% -0.0677 -0.0596)
OKLCHoklch(59.26% 0.09 221.3)
XYZxyz(17.1518, 21.5592, 38.3722)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA4 #A44D33
analogous
#33A485 #338AA4 #3352A4
triadic
#338AA4 #A4338A #8AA433
tetradic
#338AA4 #8533A4 #A44D33 #52A433
square
#338AA4 #8533A4 #A44D33 #52A433
split-complementary
#338AA4 #A43352 #A48533
monochromatic
#163B47 #246375 #338AA4 #4DABC8 #7BC1D6

Accessibility & contrast

On white

3.95
#338AA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#338AA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AA4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AA4#FFFFFF#000000##000000
##338AA41.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B87A5
Deuteranopia (green-blind)
#6B7BA4
Tritanopia (blue-blind)
#009292
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #338aa4;
/* rgb */ color: rgb(51, 138, 164);
/* oklch */ color: oklch(59.3% 0.090 221.3);
Tailwind
colors: {
  custom: {
    50: '#79acbf',
    500: '#338aa4',
    950: '#000000',
  },
}
SCSS
$custom: #338aa4;
$custom-light: #79acbf;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa4",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 164
  },
  "hsl": {
    "h": 193.805,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.59263,
    "c": 0.09018,
    "h": 221.3
  },
  "luminance": 0.21561
}

Semantic roles & 50–950 ramp

primary
#338AA4
secondary
#BF8574
accent
#6D4CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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