#338BAD#338BAD

#338BAD is a mid, moderate cyan. Relative luminance 0.222; OKLCH L 59.9% C 0.097 H 227.6°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#338BAD
RGBrgb(51, 139, 173)
HSLhsl(197, 54%, 44%)
HSVhsv(197, 71%, 68%)
CMYKcmyk(70.5%, 19.7%, 0%, 32.2%)
CIE-LABlab(54.22, -14.82, -25.50)
CIE-LCHlch(54.22, 29.49, 239.83°)
OKLaboklab(59.91% -0.0652 -0.0714)
OKLCHoklch(59.91% 0.097 227.6)
XYZxyz(18.1376, 22.1841, 42.8531)
Luminance0.2219 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338BAD #AD5533
analogous
#33AD92 #338BAD #334EAD
triadic
#338BAD #AD338B #8BAD33
tetradic
#338BAD #9233AD #AD5533 #4EAD33
square
#338BAD #9233AD #AD5533 #4EAD33
split-complementary
#338BAD #AD334E #AD9233
monochromatic
#173F4E #25657E #338BAD #51AACC #81C1DA

Accessibility & contrast

On white

3.86
#338BAD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#338BAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338BAD
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338BAD#FFFFFF#000000##000000
##338BAD1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7989AF
Deuteranopia (green-blind)
#687CAD
Tritanopia (blue-blind)
#009596
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #338bad;
/* rgb */ color: rgb(51, 139, 173);
/* oklch */ color: oklch(59.9% 0.097 227.6);
Tailwind
colors: {
  custom: {
    50: '#7aadc5',
    500: '#338bad',
    950: '#000000',
  },
}
SCSS
$custom: #338bad;
$custom-light: #7aadc5;
$custom-dark: #000000;
JSON
{
  "hex": "#338bad",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 173
  },
  "hsl": {
    "h": 196.721,
    "s": 54.464,
    "l": 43.922
  },
  "oklch": {
    "l": 0.59914,
    "c": 0.09673,
    "h": 227.6
  },
  "luminance": 0.22186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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