#336AB7#336AB7

#336AB7 is a mid, vivid blue. Relative luminance 0.144; OKLCH L 52.7% C 0.135 H 257.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#336AB7
RGBrgb(51, 106, 183)
HSLhsl(215, 56%, 46%)
HSVhsv(215, 72%, 72%)
CMYKcmyk(72.1%, 42.1%, 0%, 28.2%)
CIE-LABlab(44.84, 8.33, -46.02)
CIE-LCHlch(44.84, 46.76, 280.26°)
OKLaboklab(52.68% -0.0295 -0.1315)
OKLCHoklch(52.68% 0.135 257.4)
XYZxyz(15.0634, 14.4291, 46.7818)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB7 #B78033
analogous
#33ACB7 #336AB7 #3E33B7
triadic
#336AB7 #B7336A #6AB733
tetradic
#336AB7 #B733AC #B78033 #33B73E
square
#336AB7 #B733AC #B78033 #33B73E
split-complementary
#336AB7 #B73E33 #ACB733
monochromatic
#183357 #264E87 #336AB7 #578AD0 #87ABDE

Accessibility & contrast

On white

5.40
#336AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#336AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336AB7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB7#FFFFFF#000000##FFFFFF
##336AB71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4571BA
Deuteranopia (green-blind)
#2F64B5
Tritanopia (blue-blind)
#007C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336ab7;
/* rgb */ color: rgb(51, 106, 183);
/* oklch */ color: oklch(52.7% 0.135 257.4);
Tailwind
colors: {
  custom: {
    50: '#7b94cd',
    500: '#336ab7',
    950: '#000000',
  },
}
SCSS
$custom: #336ab7;
$custom-light: #7b94cd;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab7",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 183
  },
  "hsl": {
    "h": 215,
    "s": 56.41,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52679,
    "c": 0.13473,
    "h": 257.4
  },
  "luminance": 0.14431
}

Semantic roles & 50–950 ramp

primary
#336AB7
secondary
#C7A97F
accent
#A148E0
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #336AB7

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

Preview Lab → · Contrast checker → · Palette generator →

#336AB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva