#337AFF#337AFF

#337AFF is a mid, highly saturated blue. Relative luminance 0.218; OKLCH L 61.1% C 0.211 H 261.5°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#337AFF
RGBrgb(51, 122, 255)
HSLhsl(219, 100%, 60%)
HSVhsv(219, 80%, 100%)
CMYKcmyk(80%, 52.2%, 0%, 0%)
CIE-LABlab(53.86, 24.99, -72.27)
CIE-LCHlch(53.86, 76.47, 289.08°)
OKLaboklab(61.07% -0.0312 -0.2084)
OKLCHoklch(61.07% 0.211 261.5)
XYZxyz(26.3682, 21.8397, 97.4141)
Luminance0.2184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337AFF #FFB833
analogous
#33E0FF #337AFF #5233FF
triadic
#337AFF #FF337A #7AFF33
tetradic
#337AFF #FF33E0 #FFB833 #33FF52
square
#337AFF #FF33E0 #FFB833 #33FF52
split-complementary
#337AFF #FF5233 #E0FF33
monochromatic
#0040B8 #0055F5 #337AFF #70A2FF #ADCAFF

Accessibility & contrast

On white

3.91
#337AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#337AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #337AFF
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337AFF#FFFFFF#000000##000000
##337AFF1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#108AFF
Deuteranopia (green-blind)
#0078FC
Tritanopia (blue-blind)
#009BB1
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #337aff;
/* rgb */ color: rgb(51, 122, 255);
/* oklch */ color: oklch(61.1% 0.211 261.5);
Tailwind
colors: {
  custom: {
    50: '#8a9fff',
    500: '#337aff',
    950: '#000000',
  },
}
SCSS
$custom: #337aff;
$custom-light: #8a9fff;
$custom-dark: #000000;
JSON
{
  "hex": "#337aff",
  "rgb": {
    "r": 51,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 219.118,
    "s": 100,
    "l": 60
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.21073,
    "h": 261.5
  },
  "luminance": 0.21843
}

Semantic roles & 50–950 ramp

primary
#337AFF
secondary
#EED3A0
accent
#B429FF
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E18
muted
#7E7E86

Preview Lab

Preview with #337AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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