#338AA3#338AA3

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

Color values

HEX#338AA3
RGBrgb(51, 138, 163)
HSLhsl(193, 52%, 42%)
HSVhsv(193, 69%, 64%)
CMYKcmyk(68.7%, 15.3%, 0%, 36.1%)
CIE-LABlab(53.52, -17.59, -20.83)
CIE-LCHlch(53.52, 27.26, 229.82°)
OKLaboklab(59.22% -0.0681 -0.0581)
OKLCHoklch(59.22% 0.09 220.5)
XYZxyz(17.0619, 21.5232, 37.8984)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA3 #A34C33
analogous
#33A384 #338AA3 #3352A3
triadic
#338AA3 #A3338A #8AA333
tetradic
#338AA3 #8433A3 #A34C33 #52A333
square
#338AA3 #8433A3 #A34C33 #52A333
split-complementary
#338AA3 #A33352 #A38433
monochromatic
#163B46 #246374 #338AA3 #4CACC7 #7BC1D6

Accessibility & contrast

On white

3.96
#338AA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338AA3#FFFFFF#000000##000000
##338AA31.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338aa3;
/* rgb */ color: rgb(51, 138, 163);
/* oklch */ color: oklch(59.2% 0.090 220.5);
Tailwind
colors: {
  custom: {
    50: '#79acbe',
    500: '#338aa3',
    950: '#000000',
  },
}
SCSS
$custom: #338aa3;
$custom-light: #79acbe;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa3",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 163
  },
  "hsl": {
    "h": 193.393,
    "s": 52.336,
    "l": 41.961
  },
  "oklch": {
    "l": 0.59219,
    "c": 0.08952,
    "h": 220.5
  },
  "luminance": 0.21525
}

Semantic roles & 50–950 ramp

primary
#338AA3
secondary
#BE8473
accent
#6C4CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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