#336BBA#336BBA

#336BBA is a mid, vivid blue. Relative luminance 0.148; OKLCH L 53.1% C 0.138 H 257.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#336BBA
RGBrgb(51, 107, 186)
HSLhsl(215, 57%, 46%)
HSVhsv(215, 73%, 73%)
CMYKcmyk(72.6%, 42.5%, 0%, 27.1%)
CIE-LABlab(45.31, 8.81, -47.02)
CIE-LCHlch(45.31, 47.84, 280.62°)
OKLaboklab(53.1% -0.0298 -0.1344)
OKLCHoklch(53.1% 0.138 257.5)
XYZxyz(15.4826, 14.7627, 48.4784)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336BBA #BA8233
analogous
#33AFBA #336BBA #3F33BA
triadic
#336BBA #BA336B #6BBA33
tetradic
#336BBA #BA33AF #BA8233 #33BA3F
square
#336BBA #BA33AF #BA8233 #33BA3F
split-complementary
#336BBA #BA3F33 #AFBA33
monochromatic
#19345A #264F8A #336BBA #598BD1 #89ACDF

Accessibility & contrast

On white

5.31
#336BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#336BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336BBA
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336BBA#FFFFFF#000000##FFFFFF
##336BBA1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4572BD
Deuteranopia (green-blind)
#2D65B8
Tritanopia (blue-blind)
#007D89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #336bba;
/* rgb */ color: rgb(51, 107, 186);
/* oklch */ color: oklch(53.1% 0.138 257.5);
Tailwind
colors: {
  custom: {
    50: '#7c94cf',
    500: '#336bba',
    950: '#000000',
  },
}
SCSS
$custom: #336bba;
$custom-light: #7c94cf;
$custom-dark: #000000;
JSON
{
  "hex": "#336bba",
  "rgb": {
    "r": 51,
    "g": 107,
    "b": 186
  },
  "hsl": {
    "h": 215.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53097,
    "c": 0.13765,
    "h": 257.5
  },
  "luminance": 0.14764
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #336BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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