#338EA2#338EA2

#338EA2 is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.2% C 0.089 H 215.2°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#338EA2
RGBrgb(51, 142, 162)
HSLhsl(191, 52%, 42%)
HSVhsv(191, 69%, 64%)
CMYKcmyk(68.5%, 12.3%, 0%, 36.5%)
CIE-LABlab(54.72, -20.06, -18.42)
CIE-LCHlch(54.72, 27.23, 222.56°)
OKLaboklab(60.17% -0.0727 -0.0513)
OKLCHoklch(60.17% 0.089 215.2)
XYZxyz(17.5571, 22.6565, 37.6233)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338EA2 #A24733
analogous
#33A27F #338EA2 #3357A2
triadic
#338EA2 #A2338E #8EA233
tetradic
#338EA2 #7F33A2 #A24733 #57A233
square
#338EA2 #7F33A2 #A24733 #57A233
split-complementary
#338EA2 #A23357 #A27F33
monochromatic
#163C45 #246573 #338EA2 #4CB0C7 #7AC5D5

Accessibility & contrast

On white

3.80
#338EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#338EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338EA2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338EA2#FFFFFF#000000##000000
##338EA21.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#808AA3
Deuteranopia (green-blind)
#707EA2
Tritanopia (blue-blind)
#009594
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338ea2;
/* rgb */ color: rgb(51, 142, 162);
/* oklch */ color: oklch(60.2% 0.089 215.2);
Tailwind
colors: {
  custom: {
    50: '#79afbd',
    500: '#338ea2',
    950: '#000000',
  },
}
SCSS
$custom: #338ea2;
$custom-light: #79afbd;
$custom-dark: #000000;
JSON
{
  "hex": "#338ea2",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 162
  },
  "hsl": {
    "h": 190.811,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.60169,
    "c": 0.089,
    "h": 215.2
  },
  "luminance": 0.22658
}

Semantic roles & 50–950 ramp

primary
#338EA2
secondary
#BE8073
accent
#664CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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