#336AB8#336AB8

#336AB8 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 52.7% C 0.136 H 257.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#336AB8
RGBrgb(51, 106, 184)
HSLhsl(215, 57%, 46%)
HSVhsv(215, 72%, 72%)
CMYKcmyk(72.3%, 42.4%, 0%, 27.8%)
CIE-LABlab(44.90, 8.70, -46.50)
CIE-LCHlch(44.90, 47.31, 280.60°)
OKLaboklab(52.74% -0.0293 -0.1329)
OKLCHoklch(52.74% 0.136 257.6)
XYZxyz(15.1679, 14.4709, 47.3319)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336AB8 #B88133
analogous
#33ACB8 #336AB8 #3E33B8
triadic
#336AB8 #B8336A #6AB833
tetradic
#336AB8 #B833AC #B88133 #33B83E
square
#336AB8 #B833AC #B88133 #33B83E
split-complementary
#336AB8 #B83E33 #ACB833
monochromatic
#183358 #264E88 #336AB8 #588AD1 #88ABDE

Accessibility & contrast

On white

5.39
#336AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #336AB8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336AB8#FFFFFF#000000##FFFFFF
##336AB81.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4471BB
Deuteranopia (green-blind)
#2E65B6
Tritanopia (blue-blind)
#007C88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336ab8;
/* rgb */ color: rgb(51, 106, 184);
/* oklch */ color: oklch(52.7% 0.136 257.6);
Tailwind
colors: {
  custom: {
    50: '#7b94ce',
    500: '#336ab8',
    950: '#000000',
  },
}
SCSS
$custom: #336ab8;
$custom-light: #7b94ce;
$custom-dark: #000000;
JSON
{
  "hex": "#336ab8",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 184
  },
  "hsl": {
    "h": 215.188,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52743,
    "c": 0.13609,
    "h": 257.6
  },
  "luminance": 0.14473
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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