#337AB2#337AB2

#337AB2 is a mid, moderate cyan. Relative luminance 0.178; OKLCH L 56.1% C 0.112 H 245.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#337AB2
RGBrgb(51, 122, 178)
HSLhsl(206, 55%, 45%)
HSVhsv(206, 71%, 70%)
CMYKcmyk(71.3%, 31.5%, 0%, 30.2%)
CIE-LABlab(49.30, -3.33, -36.05)
CIE-LCHlch(49.30, 36.21, 264.73°)
OKLaboklab(56.08% -0.0462 -0.1021)
OKLCHoklch(56.08% 0.112 245.6)
XYZxyz(16.3576, 17.8354, 44.6913)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337AB2 #B26B33
analogous
#33B2AB #337AB2 #333AB2
triadic
#337AB2 #B2337A #7AB233
tetradic
#337AB2 #AB33B2 #B26B33 #3AB233
square
#337AB2 #AB33B2 #B26B33 #3AB233
split-complementary
#337AB2 #B2333A #B2AB33
monochromatic
#183953 #255982 #337AB2 #5498CE #84B5DC

Accessibility & contrast

On white

4.60
#337AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#337AB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #337AB2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337AB2#FFFFFF#000000##FFFFFF
##337AB21.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#617CB4
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#00888E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #337ab2;
/* rgb */ color: rgb(51, 122, 178);
/* oklch */ color: oklch(56.1% 0.112 245.6);
Tailwind
colors: {
  custom: {
    50: '#7aa0c9',
    500: '#337ab2',
    950: '#000000',
  },
}
SCSS
$custom: #337ab2;
$custom-light: #7aa0c9;
$custom-dark: #000000;
JSON
{
  "hex": "#337ab2",
  "rgb": {
    "r": 51,
    "g": 122,
    "b": 178
  },
  "hsl": {
    "h": 206.457,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56076,
    "c": 0.11207,
    "h": 245.6
  },
  "luminance": 0.17837
}

Semantic roles & 50–950 ramp

primary
#337AB2
secondary
#C59C7C
accent
#8B49DF
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #337AB2

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

Preview Lab → · Contrast checker → · Palette generator →

#337AB2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva