#336ABA#336ABA

#336ABA is a mid, vivid blue. Relative luminance 0.146; OKLCH L 52.9% C 0.139 H 258.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#336ABA
RGBrgb(51, 106, 186)
HSLhsl(216, 57%, 46%)
HSVhsv(216, 73%, 73%)
CMYKcmyk(72.6%, 43%, 0%, 27.1%)
CIE-LABlab(45.02, 9.44, -47.48)
CIE-LCHlch(45.02, 48.41, 281.25°)
OKLaboklab(52.87% -0.0289 -0.1358)
OKLCHoklch(52.87% 0.139 258)
XYZxyz(15.3790, 14.5554, 48.4438)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336ABA #BA8333
analogous
#33AEBA #336ABA #4033BA
triadic
#336ABA #BA336A #6ABA33
tetradic
#336ABA #BA33AE #BA8333 #33BA40
square
#336ABA #BA33AE #BA8333 #33BA40
split-complementary
#336ABA #BA4033 #AEBA33
monochromatic
#19335A #264F8A #336ABA #598AD1 #89ACDF

Accessibility & contrast

On white

5.37
#336ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#336ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336ABA
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336ABA#FFFFFF#000000##FFFFFF
##336ABA1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4371BD
Deuteranopia (green-blind)
#2B65B8
Tritanopia (blue-blind)
#007D89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #336aba;
/* rgb */ color: rgb(51, 106, 186);
/* oklch */ color: oklch(52.9% 0.139 258.0);
Tailwind
colors: {
  custom: {
    50: '#7c94cf',
    500: '#336aba',
    950: '#000000',
  },
}
SCSS
$custom: #336aba;
$custom-light: #7c94cf;
$custom-dark: #000000;
JSON
{
  "hex": "#336aba",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 186
  },
  "hsl": {
    "h": 215.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52873,
    "c": 0.1388,
    "h": 258
  },
  "luminance": 0.14557
}

Semantic roles & 50–950 ramp

primary
#336ABA
secondary
#C9AB80
accent
#A248E0
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #336ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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