#336CBD#336CBD

#336CBD is a mid, vivid blue. Relative luminance 0.151; OKLCH L 53.5% C 0.141 H 257.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#336CBD
RGBrgb(51, 108, 189)
HSLhsl(215, 58%, 47%)
HSVhsv(215, 73%, 74%)
CMYKcmyk(73%, 42.9%, 0%, 25.9%)
CIE-LABlab(45.77, 9.30, -48.01)
CIE-LCHlch(45.77, 48.90, 280.96°)
OKLaboklab(53.51% -0.0301 -0.1373)
OKLCHoklch(53.51% 0.141 257.6)
XYZxyz(15.9098, 15.1013, 50.2106)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336CBD #BD8433
analogous
#33B1BD #336CBD #3F33BD
triadic
#336CBD #BD336C #6CBD33
tetradic
#336CBD #BD33B1 #BD8433 #33BD3F
square
#336CBD #BD33B1 #BD8433 #33BD3F
split-complementary
#336CBD #BD3F33 #B1BD33
monochromatic
#19355D #26508D #336CBD #5B8CD3 #8BAEE0

Accessibility & contrast

On white

5.22
#336CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#336CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336CBD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336CBD#FFFFFF#000000##FFFFFF
##336CBD1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4473C0
Deuteranopia (green-blind)
#2C67BB
Tritanopia (blue-blind)
#007F8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #336cbd;
/* rgb */ color: rgb(51, 108, 189);
/* oklch */ color: oklch(53.5% 0.141 257.6);
Tailwind
colors: {
  custom: {
    50: '#7c95d1',
    500: '#336cbd',
    950: '#000000',
  },
}
SCSS
$custom: #336cbd;
$custom-light: #7c95d1;
$custom-dark: #000000;
JSON
{
  "hex": "#336cbd",
  "rgb": {
    "r": 51,
    "g": 108,
    "b": 189
  },
  "hsl": {
    "h": 215.217,
    "s": 57.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53514,
    "c": 0.14055,
    "h": 257.6
  },
  "luminance": 0.15103
}

Semantic roles & 50–950 ramp

primary
#336CBD
secondary
#CAAC82
accent
#A147E1
background
#F8F9FC
surface
#EFF1F9
border
#CACBD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #336CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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