#337FAB#337FAB

#337FAB is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.9% C 0.100 H 237.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#337FAB
RGBrgb(51, 127, 171)
HSLhsl(202, 54%, 44%)
HSVhsv(202, 70%, 67%)
CMYKcmyk(70.2%, 25.7%, 0%, 32.9%)
CIE-LABlab(50.48, -8.73, -30.15)
CIE-LCHlch(50.48, 31.39, 253.85°)
OKLaboklab(56.9% -0.0536 -0.0849)
OKLCHoklch(56.9% 0.1 237.7)
XYZxyz(16.3024, 18.8210, 41.2938)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337FAB #AB5F33
analogous
#33AB9B #337FAB #3343AB
triadic
#337FAB #AB337F #7FAB33
tetradic
#337FAB #9B33AB #AB5F33 #43AB33
square
#337FAB #9B33AB #AB5F33 #43AB33
split-complementary
#337FAB #AB3343 #AB9B33
monochromatic
#17394D #255C7C #337FAB #509ECB #7FB8D9

Accessibility & contrast

On white

4.41
#337FAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#337FAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #337FAB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337FAB#FFFFFF#000000##000000
##337FAB1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A7FAD
Deuteranopia (green-blind)
#5A73AA
Tritanopia (blue-blind)
#008A8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #337fab;
/* rgb */ color: rgb(51, 127, 171);
/* oklch */ color: oklch(56.9% 0.100 237.7);
Tailwind
colors: {
  custom: {
    50: '#79a4c4',
    500: '#337fab',
    950: '#000000',
  },
}
SCSS
$custom: #337fab;
$custom-light: #79a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#337fab",
  "rgb": {
    "r": 51,
    "g": 127,
    "b": 171
  },
  "hsl": {
    "h": 202,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56902,
    "c": 0.1004,
    "h": 237.7
  },
  "luminance": 0.18823
}

Semantic roles & 50–950 ramp

primary
#337FAB
secondary
#C29378
accent
#804ADD
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #337FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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