#338DA2#338DA2

#338DA2 is a mid, moderate cyan. Relative luminance 0.224; OKLCH L 59.9% C 0.089 H 216.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#338DA2
RGBrgb(51, 141, 162)
HSLhsl(191, 52%, 42%)
HSVhsv(191, 69%, 64%)
CMYKcmyk(68.5%, 13%, 0%, 36.5%)
CIE-LABlab(54.41, -19.53, -18.89)
CIE-LCHlch(54.41, 27.17, 224.06°)
OKLaboklab(59.92% -0.0717 -0.0526)
OKLCHoklch(59.92% 0.089 216.3)
XYZxyz(17.4090, 22.3603, 37.5739)
Luminance0.2236 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DA2 #A24833
analogous
#33A280 #338DA2 #3356A2
triadic
#338DA2 #A2338D #8DA233
tetradic
#338DA2 #8033A2 #A24833 #56A233
square
#338DA2 #8033A2 #A24833 #56A233
split-complementary
#338DA2 #A23356 #A28033
monochromatic
#163C45 #246473 #338DA2 #4CAFC7 #7AC4D5

Accessibility & contrast

On white

3.84
#338DA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#338DA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DA2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DA2#FFFFFF#000000##000000
##338DA21.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F89A3
Deuteranopia (green-blind)
#6F7DA2
Tritanopia (blue-blind)
#009594
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338da2;
/* rgb */ color: rgb(51, 141, 162);
/* oklch */ color: oklch(59.9% 0.089 216.3);
Tailwind
colors: {
  custom: {
    50: '#79aebd',
    500: '#338da2',
    950: '#000000',
  },
}
SCSS
$custom: #338da2;
$custom-light: #79aebd;
$custom-dark: #000000;
JSON
{
  "hex": "#338da2",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 162
  },
  "hsl": {
    "h": 191.351,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5992,
    "c": 0.08892,
    "h": 216.3
  },
  "luminance": 0.22362
}

Semantic roles & 50–950 ramp

primary
#338DA2
secondary
#BE8173
accent
#674CDC
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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