#338AA8#338AA8

#338AA8 is a mid, moderate cyan. Relative luminance 0.217; OKLCH L 59.4% C 0.093 H 224.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#338AA8
RGBrgb(51, 138, 168)
HSLhsl(195, 53%, 43%)
HSVhsv(195, 70%, 66%)
CMYKcmyk(69.6%, 17.9%, 0%, 34.1%)
CIE-LABlab(53.71, -15.94, -23.41)
CIE-LCHlch(53.71, 28.32, 235.74°)
OKLaboklab(59.44% -0.0661 -0.0654)
OKLCHoklch(59.44% 0.093 224.7)
XYZxyz(17.5187, 21.7060, 40.3046)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA8 #A85133
analogous
#33A88C #338AA8 #334FA8
triadic
#338AA8 #A8338A #8AA833
tetradic
#338AA8 #8C33A8 #A85133 #4FA833
square
#338AA8 #8C33A8 #A85133 #4FA833
split-complementary
#338AA8 #A8334F #A88C33
monochromatic
#163D4A #256379 #338AA8 #4FAAC9 #7EC1D8

Accessibility & contrast

On white

3.93
#338AA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#338AA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AA8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AA8#FFFFFF#000000##000000
##338AA81.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7987AA
Deuteranopia (green-blind)
#697BA8
Tritanopia (blue-blind)
#009394
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #338aa8;
/* rgb */ color: rgb(51, 138, 168);
/* oklch */ color: oklch(59.4% 0.093 224.7);
Tailwind
colors: {
  custom: {
    50: '#7aacc2',
    500: '#338aa8',
    950: '#000000',
  },
}
SCSS
$custom: #338aa8;
$custom-light: #7aacc2;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa8",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 168
  },
  "hsl": {
    "h": 195.385,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.59441,
    "c": 0.09304,
    "h": 224.7
  },
  "luminance": 0.21708
}

Semantic roles & 50–950 ramp

primary
#338AA8
secondary
#C18976
accent
#704BDD
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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