#336FDB#336FDB

#336FDB is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.2% C 0.177 H 261.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#336FDB
RGBrgb(51, 111, 219)
HSLhsl(219, 70%, 53%)
HSVhsv(219, 77%, 86%)
CMYKcmyk(76.7%, 49.3%, 0%, 14.1%)
CIE-LABlab(48.49, 18.57, -60.82)
CIE-LCHlch(48.49, 63.60, 286.98°)
OKLaboklab(56.21% -0.0276 -0.1749)
OKLCHoklch(56.21% 0.177 261)
XYZxyz(19.8312, 17.1849, 69.2759)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FDB #DB9F33
analogous
#33C3DB #336FDB #4B33DB
triadic
#336FDB #DB336F #6FDB33
tetradic
#336FDB #DB33C3 #DB9F33 #33DB4B
square
#336FDB #DB33C3 #DB9F33 #33DB4B
split-complementary
#336FDB #DB4B33 #C3DB33
monochromatic
#163B7D #1F54B1 #336FDB #6794E4 #9BB8ED

Accessibility & contrast

On white

4.73
#336FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#336FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FDB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FDB#FFFFFF#000000##FFFFFF
##336FDB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E7BDF
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#00899A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #336fdb;
/* rgb */ color: rgb(51, 111, 219);
/* oklch */ color: oklch(56.2% 0.177 261.0);
Tailwind
colors: {
  custom: {
    50: '#8297e7',
    500: '#336fdb',
    950: '#000000',
  },
}
SCSS
$custom: #336fdb;
$custom-light: #8297e7;
$custom-dark: #000000;
JSON
{
  "hex": "#336fdb",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 219
  },
  "hsl": {
    "h": 218.571,
    "s": 70,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56211,
    "c": 0.17709,
    "h": 261
  },
  "luminance": 0.17187
}

Semantic roles & 50–950 ramp

primary
#336FDB
secondary
#D9BF91
accent
#AD3BED
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #336FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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