#338AAA#338AAA

#338AAA is a mid, moderate cyan. Relative luminance 0.218; OKLCH L 59.5% C 0.095 H 226.3°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#338AAA
RGBrgb(51, 138, 170)
HSLhsl(196, 54%, 43%)
HSVhsv(196, 70%, 67%)
CMYKcmyk(70%, 18.8%, 0%, 33.3%)
CIE-LABlab(53.79, -15.27, -24.43)
CIE-LCHlch(53.79, 28.81, 237.99°)
OKLaboklab(59.53% -0.0654 -0.0684)
OKLCHoklch(59.53% 0.095 226.3)
XYZxyz(17.7065, 21.7811, 41.2934)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AAA #AA5333
analogous
#33AA8E #338AAA #334FAA
triadic
#338AAA #AA338A #8AAA33
tetradic
#338AAA #8E33AA #AA5333 #4FAA33
square
#338AAA #8E33AA #AA5333 #4FAA33
split-complementary
#338AAA #AA334F #AA8E33
monochromatic
#173E4C #25647B #338AAA #50A9CA #7FC0D9

Accessibility & contrast

On white

3.92
#338AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#338AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AAA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AAA#FFFFFF#000000##000000
##338AAA1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7987AC
Deuteranopia (green-blind)
#687BAA
Tritanopia (blue-blind)
#009394
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #338aaa;
/* rgb */ color: rgb(51, 138, 170);
/* oklch */ color: oklch(59.5% 0.095 226.3);
Tailwind
colors: {
  custom: {
    50: '#7aacc3',
    500: '#338aaa',
    950: '#000000',
  },
}
SCSS
$custom: #338aaa;
$custom-light: #7aacc3;
$custom-dark: #000000;
JSON
{
  "hex": "#338aaa",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 170
  },
  "hsl": {
    "h": 196.134,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.59532,
    "c": 0.09459,
    "h": 226.3
  },
  "luminance": 0.21783
}

Semantic roles & 50–950 ramp

primary
#338AAA
secondary
#C28B77
accent
#724BDD
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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