#338AA2#338AA2

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

Color values

HEX#338AA2
RGBrgb(51, 138, 162)
HSLhsl(193, 52%, 42%)
HSVhsv(193, 69%, 64%)
CMYKcmyk(68.5%, 14.8%, 0%, 36.5%)
CIE-LABlab(53.48, -17.92, -20.31)
CIE-LCHlch(53.48, 27.08, 228.58°)
OKLaboklab(59.18% -0.0685 -0.0566)
OKLCHoklch(59.18% 0.089 219.6)
XYZxyz(16.9726, 21.4875, 37.4284)
Luminance0.2149 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA2 #A24B33
analogous
#33A283 #338AA2 #3353A2
triadic
#338AA2 #A2338A #8AA233
tetradic
#338AA2 #8333A2 #A24B33 #53A233
square
#338AA2 #8333A2 #A24B33 #53A233
split-complementary
#338AA2 #A23353 #A28333
monochromatic
#163B45 #246273 #338AA2 #4CACC7 #7AC2D5

Accessibility & contrast

On white

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

On black

5.30
#338AA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AA2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AA2#FFFFFF#000000##000000
##338AA21.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338aa2;
/* rgb */ color: rgb(51, 138, 162);
/* oklch */ color: oklch(59.2% 0.089 219.6);
Tailwind
colors: {
  custom: {
    50: '#79acbd',
    500: '#338aa2',
    950: '#000000',
  },
}
SCSS
$custom: #338aa2;
$custom-light: #79acbd;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa2",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 162
  },
  "hsl": {
    "h": 192.973,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.59175,
    "c": 0.08888,
    "h": 219.6
  },
  "luminance": 0.21489
}

Semantic roles & 50–950 ramp

primary
#338AA2
secondary
#BE8373
accent
#6B4CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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