#336FD3#336FD3

#336FD3 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.6% C 0.167 H 260.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#336FD3
RGBrgb(51, 111, 211)
HSLhsl(218, 65%, 51%)
HSVhsv(218, 76%, 83%)
CMYKcmyk(75.8%, 47.4%, 0%, 17.3%)
CIE-LABlab(47.97, 15.59, -57.11)
CIE-LCHlch(47.97, 59.20, 285.27°)
OKLaboklab(55.65% -0.0287 -0.164)
OKLCHoklch(55.65% 0.167 260.1)
XYZxyz(18.8033, 16.7737, 63.8620)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336FD3 #D39733
analogous
#33BFD3 #336FD3 #4733D3
triadic
#336FD3 #D3336F #6FD333
tetradic
#336FD3 #D333BF #D39733 #33D347
square
#336FD3 #D333BF #D39733 #33D347
split-complementary
#336FD3 #D34733 #BFD333
monochromatic
#193B73 #2454A5 #336FD3 #6593DE #98B6E9

Accessibility & contrast

On white

4.82
#336FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#336FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336FD3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336FD3#FFFFFF#000000##FFFFFF
##336FD31.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#387AD7
Deuteranopia (green-blind)
#026BD1
Tritanopia (blue-blind)
#008797
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #336fd3;
/* rgb */ color: rgb(51, 111, 211);
/* oklch */ color: oklch(55.6% 0.167 260.1);
Tailwind
colors: {
  custom: {
    50: '#8197e1',
    500: '#336fd3',
    950: '#000000',
  },
}
SCSS
$custom: #336fd3;
$custom-light: #8197e1;
$custom-dark: #000000;
JSON
{
  "hex": "#336fd3",
  "rgb": {
    "r": 51,
    "g": 111,
    "b": 211
  },
  "hsl": {
    "h": 217.5,
    "s": 64.516,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55648,
    "c": 0.16651,
    "h": 260.1
  },
  "luminance": 0.16776
}

Semantic roles & 50–950 ramp

primary
#336FD3
secondary
#D4BA8E
accent
#A940E8
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #336FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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