#338DA4#338DA4

#338DA4 is a mid, moderate cyan. Relative luminance 0.224; OKLCH L 60.0% C 0.090 H 218.1°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#338DA4
RGBrgb(51, 141, 164)
HSLhsl(192, 53%, 42%)
HSVhsv(192, 69%, 64%)
CMYKcmyk(68.9%, 14%, 0%, 35.7%)
CIE-LABlab(54.48, -18.88, -19.93)
CIE-LCHlch(54.48, 27.45, 226.55°)
OKLaboklab(60.01% -0.0709 -0.0555)
OKLCHoklch(60.01% 0.09 218.1)
XYZxyz(17.5882, 22.4319, 38.5176)
Luminance0.2243 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DA4 #A44A33
analogous
#33A482 #338DA4 #3355A4
triadic
#338DA4 #A4338D #8DA433
tetradic
#338DA4 #8233A4 #A44A33 #55A433
square
#338DA4 #8233A4 #A44A33 #55A433
split-complementary
#338DA4 #A43355 #A48233
monochromatic
#163D47 #246575 #338DA4 #4DAFC8 #7BC4D6

Accessibility & contrast

On white

3.83
#338DA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#338DA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DA4
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DA4#FFFFFF#000000##000000
##338DA41.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338da4;
/* rgb */ color: rgb(51, 141, 164);
/* oklch */ color: oklch(60.0% 0.090 218.1);
Tailwind
colors: {
  custom: {
    50: '#79aebf',
    500: '#338da4',
    950: '#000000',
  },
}
SCSS
$custom: #338da4;
$custom-light: #79aebf;
$custom-dark: #000000;
JSON
{
  "hex": "#338da4",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 164
  },
  "hsl": {
    "h": 192.212,
    "s": 52.558,
    "l": 42.157
  },
  "oklch": {
    "l": 0.60006,
    "c": 0.09003,
    "h": 218.1
  },
  "luminance": 0.22434
}

Semantic roles & 50–950 ramp

primary
#338DA4
secondary
#BF8374
accent
#694CDC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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