Skip to content

#336fd6

a balanced, vivid blue · cool · closest name: Royal Blue

RGB
51, 111, 214
HSL
218°, 67%, 52%
CMYK
76, 48, 0, 16
Luminance
0.1693

At a glance

Every number on this page in one read: what #336fd6 is made of, how bright it looks, and which way it leans.

Hex
#336fd6
Hue
218°
blue
Saturation
67%
vivid
Lightness
52%
balanced
Brightness
84%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1693
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
4.79:1
Closest name
Royal Blue
ΔE2000 3.8
Where it sits
Hue218° of 360°
Saturation67%
Lightness52%
Temperature
Warm ← → Cool96% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#336fd6
RGBrgb(51, 111, 214)
HSLhsl(218, 67%, 52%)
CMYKcmyk(76%, 48%, 0%, 16%)
LABlab(48.2 16.7 -58.5)
LCHlch(48.2 60.9 285.9)
OKLCHoklch(0.559 0.171 260.5)
Decimal3370966
Display P3color(display-p3 0.200 0.435 0.839)

Copy-ready code

/* CSS */
color: #336fd6;
background-color: #336fd6;
/* Tailwind (arbitrary) */
class="text-[#336fd6] bg-[#336fd6]"
/* SCSS */
$brand: #336fd6;
/* SwiftUI */
Color(red: 0.200, green: 0.435, blue: 0.839)
/* Android */
Color.parseColor("#336fd6")
/* Flutter */
Color(0xFF336FD6)
/* Python / OpenCV (BGR) */
(214, 111, 51)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #336fd6 · 4.79:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.79:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.39:1
AA fail · AA large pass · AAA fail
Reading the other direction: #336fd6 as text scores 4.79:1 on white and 4.39:1 on black.

Accessibility — WCAG contrast

Aa
#336fd6 on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#336fd6 on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #347ADA
deuteranopia · #006BD4
tritanopia · #008898

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #336fd6 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F3F6FB
#E8EEF8
#CAD9F1
#A2BDEC
#739CE3
#336fd6
#2965CC
#2254AA
#1B4388
#183363
#0F203E
Base = 500Lightest = 50 · #F3F6FBDarkest = 950 · #0F203E
:root {
  --brand-50: #F3F6FB;
  --brand-100: #E8EEF8;
  --brand-200: #CAD9F1;
  --brand-300: #A2BDEC;
  --brand-400: #739CE3;
  --brand-500: #336fd6;
  --brand-600: #2965CC;
  --brand-700: #2254AA;
  --brand-800: #1B4388;
  --brand-900: #183363;
  --brand-950: #0F203E;
  --brand: #336fd6;
  --brand-ink: #ffffff;
}

Colors that work with #336fd6

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F7FA
Tinted page background
Border#C0D0ED
Hairlines and dividers
Muted text#4B689B
Captions on the surface
Accent#DB702E
Second voice, not a rival
Dark variant#15356A
Hover, pressed, headers
Light variant#EAF0FB
Selected rows, tints
Dark surface#141A24
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #336fd6

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#D69A33
Analogous left#33C1D6
Analogous right#4933D6
Split-complement 1#D64933
Split-complement 2#C1D633
Triadic 1#D6336F
Triadic 2#6FD633
Tetradic#D633C1

RGB percentages

Red20.0%
Green43.5%
Blue83.9%

CMYK percentages

Cyan76.2%
Magenta48.1%
Yellow0.0%
Key (black)16.1%

Color previews

#336fd6 text on a black background

contrast 4.39:1

Card sample

#336fd6 text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #336fd6;
Background color
Panel with #336fd6 background
background-color: #336fd6;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #336fd6;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(51, 111, 214, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 111, 214, 0.45);
Border & gradient
Gradient panel
border: 3px solid #336fd6;
background: linear-gradient(135deg, #336fd6, #6433D6);

Monochromatic scale

Palettes built from #336fd6

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#336fd6 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#336fd6, answered

What color is #336fd6?

#336fd6 is a balanced vivid blue, closest to Royal Blue (ΔE2000 3.8). It sits at 218° on the hue wheel with 67% saturation and 52% lightness, which reads as cool.

What is the RGB value of #336fd6?

rgb(51, 111, 214) — 51 red, 111 green and 214 blue out of 255, or 20% / 43.5% / 83.9% by channel.

Is #336fd6 a light or a dark color?

It is a dark color. Relative luminance is 0.1693 and perceived brightness is 45%, so white text on it reaches 4.79:1.

Should I use black or white text on #336fd6?

White. It scores 4.79:1 against #336fd6, versus 4.39:1 for black — AA at any size.

What is the complementary color of #336fd6?

#D69A33 sits directly opposite on the wheel. Softer options are the split-complements #D64933 and #C1D633, which give the same contrast with far less vibration.

What colors go well with #336fd6?

For interface work: #F4F7FA as the surface, #C0D0ED for borders, #4B689B for secondary text, #DB702E as an accent and #15356A for hover and pressed states. For a palette, the analogous pair #33C1D6 and #4933D6 stays calm, while #D69A33 is the loudest partner.

What is #336fd6 in CMYK for printing?

cmyk(76%, 48%, 0%, 16%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #336fd6 warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3333D6; nudged cooler, #266BCA.

Work with #336fd6 in the Color Lab