#338AAC#338AAC

#338AAC is a mid, moderate cyan. Relative luminance 0.219; OKLCH L 59.6% C 0.096 H 227.8°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#338AAC
RGBrgb(51, 138, 172)
HSLhsl(197, 54%, 44%)
HSVhsv(197, 70%, 67%)
CMYKcmyk(70.3%, 19.8%, 0%, 32.5%)
CIE-LABlab(53.88, -14.60, -25.46)
CIE-LCHlch(53.88, 29.35, 240.16°)
OKLaboklab(59.62% -0.0646 -0.0713)
OKLCHoklch(59.62% 0.096 227.8)
XYZxyz(17.8971, 21.8573, 42.2974)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AAC #AC5533
analogous
#33AC91 #338AAC #334DAC
triadic
#338AAC #AC338A #8AAC33
tetradic
#338AAC #9133AC #AC5533 #4DAC33
square
#338AAC #9133AC #AC5533 #4DAC33
split-complementary
#338AAC #AC334D #AC9133
monochromatic
#173E4E #25647D #338AAC #51A9CB #80C0D9

Accessibility & contrast

On white

3.91
#338AAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#338AAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AAC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AAC#FFFFFF#000000##000000
##338AAC1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7888AE
Deuteranopia (green-blind)
#677BAC
Tritanopia (blue-blind)
#009495
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338aac;
/* rgb */ color: rgb(51, 138, 172);
/* oklch */ color: oklch(59.6% 0.096 227.8);
Tailwind
colors: {
  custom: {
    50: '#7aacc4',
    500: '#338aac',
    950: '#000000',
  },
}
SCSS
$custom: #338aac;
$custom-light: #7aacc4;
$custom-dark: #000000;
JSON
{
  "hex": "#338aac",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 172
  },
  "hsl": {
    "h": 196.86,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.59624,
    "c": 0.09622,
    "h": 227.8
  },
  "luminance": 0.21859
}

Semantic roles & 50–950 ramp

primary
#338AAC
secondary
#C28D78
accent
#744ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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