#338AA1#338AA1

#338AA1 is a mid, moderate cyan. Relative luminance 0.215; OKLCH L 59.1% C 0.088 H 218.7°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#338AA1
RGBrgb(51, 138, 161)
HSLhsl(193, 52%, 42%)
HSVhsv(193, 68%, 63%)
CMYKcmyk(68.3%, 14.3%, 0%, 36.9%)
CIE-LABlab(53.44, -18.24, -19.79)
CIE-LCHlch(53.44, 26.92, 227.33°)
OKLaboklab(59.13% -0.0689 -0.0552)
OKLCHoklch(59.13% 0.088 218.7)
XYZxyz(16.8841, 21.4521, 36.9621)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338AA1 #A14A33
analogous
#33A181 #338AA1 #3353A1
triadic
#338AA1 #A1338A #8AA133
tetradic
#338AA1 #8133A1 #A14A33 #53A133
square
#338AA1 #8133A1 #A14A33 #53A133
split-complementary
#338AA1 #A13353 #A18133
monochromatic
#163A44 #246273 #338AA1 #4BACC6 #7AC2D5

Accessibility & contrast

On white

3.97
#338AA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#338AA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338AA1
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338AA1#FFFFFF#000000##000000
##338AA11.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B86A2
Deuteranopia (green-blind)
#6C7BA1
Tritanopia (blue-blind)
#009291
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #338aa1;
/* rgb */ color: rgb(51, 138, 161);
/* oklch */ color: oklch(59.1% 0.088 218.7);
Tailwind
colors: {
  custom: {
    50: '#79acbc',
    500: '#338aa1',
    950: '#000000',
  },
}
SCSS
$custom: #338aa1;
$custom-light: #79acbc;
$custom-dark: #000000;
JSON
{
  "hex": "#338aa1",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 161
  },
  "hsl": {
    "h": 192.545,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.59132,
    "c": 0.08827,
    "h": 218.7
  },
  "luminance": 0.21454
}

Semantic roles & 50–950 ramp

primary
#338AA1
secondary
#BD8272
accent
#6A4CDB
background
#F7FAFB
surface
#EEF4F6
border
#C9CED0
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #338AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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