#338DAC#338DAC

#338DAC is a mid, moderate cyan. Relative luminance 0.227; OKLCH L 60.4% C 0.095 H 224.8°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#338DAC
RGBrgb(51, 141, 172)
HSLhsl(195, 54%, 44%)
HSVhsv(195, 70%, 67%)
CMYKcmyk(70.3%, 18%, 0%, 32.5%)
CIE-LABlab(54.79, -16.25, -24.04)
CIE-LCHlch(54.79, 29.02, 235.95°)
OKLaboklab(60.36% -0.0677 -0.0672)
OKLCHoklch(60.36% 0.095 224.8)
XYZxyz(18.3335, 22.7301, 42.4428)
Luminance0.2273 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338DAC #AC5233
analogous
#33AC8E #338DAC #3350AC
triadic
#338DAC #AC338D #8DAC33
tetradic
#338DAC #8E33AC #AC5233 #50AC33
square
#338DAC #8E33AC #AC5233 #50AC33
split-complementary
#338DAC #AC3350 #AC8E33
monochromatic
#17404E #25667D #338DAC #51ACCB #80C2D9

Accessibility & contrast

On white

3.79
#338DAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#338DAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338DAC
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338DAC#FFFFFF#000000##000000
##338DAC1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8AAE
Deuteranopia (green-blind)
#6B7EAC
Tritanopia (blue-blind)
#009697
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #338dac;
/* rgb */ color: rgb(51, 141, 172);
/* oklch */ color: oklch(60.4% 0.095 224.8);
Tailwind
colors: {
  custom: {
    50: '#7aaec4',
    500: '#338dac',
    950: '#000000',
  },
}
SCSS
$custom: #338dac;
$custom-light: #7aaec4;
$custom-dark: #000000;
JSON
{
  "hex": "#338dac",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 172
  },
  "hsl": {
    "h": 195.372,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.60358,
    "c": 0.09542,
    "h": 224.8
  },
  "luminance": 0.22732
}

Semantic roles & 50–950 ramp

primary
#338DAC
secondary
#C28B78
accent
#704ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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