#338AAD#338AAD

#338AAD is a mid, moderate cyan. Relative luminance 0.219; OKLCH L 59.7% C 0.097 H 228.6°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#338AAD
RGBrgb(51, 138, 173)
HSLhsl(197, 54%, 44%)
HSVhsv(197, 71%, 68%)
CMYKcmyk(70.5%, 20.2%, 0%, 32.2%)
CIE-LABlab(53.92, -14.27, -25.97)
CIE-LCHlch(53.92, 29.63, 241.22°)
OKLaboklab(59.67% -0.0642 -0.0728)
OKLCHoklch(59.67% 0.097 228.6)
XYZxyz(17.9935, 21.8959, 42.8051)
Luminance0.2190 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AAD #AD5633
analogous
#33AD93 #338AAD #334DAD
triadic
#338AAD #AD338A #8AAD33
tetradic
#338AAD #9333AD #AD5633 #4DAD33
square
#338AAD #9333AD #AD5633 #4DAD33
split-complementary
#338AAD #AD334D #AD9333
monochromatic
#173F4E #25647E #338AAD #51A9CC #81C0DA

Accessibility & contrast

On white

3.90
#338AAD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#338AAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AAD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AAD#FFFFFF#000000##000000
##338AAD1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7888AF
Deuteranopia (green-blind)
#677CAD
Tritanopia (blue-blind)
#009496
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338aad;
/* rgb */ color: rgb(51, 138, 173);
/* oklch */ color: oklch(59.7% 0.097 228.6);
Tailwind
colors: {
  custom: {
    50: '#7aacc5',
    500: '#338aad',
    950: '#000000',
  },
}
SCSS
$custom: #338aad;
$custom-light: #7aacc5;
$custom-dark: #000000;
JSON
{
  "hex": "#338aad",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 173
  },
  "hsl": {
    "h": 197.213,
    "s": 54.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5967,
    "c": 0.09706,
    "h": 228.6
  },
  "luminance": 0.21898
}

Semantic roles & 50–950 ramp

primary
#338AAD
secondary
#C38E79
accent
#744ADE
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #338AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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