Skip to content

#2256ad

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

RGB
34, 86, 173
HSL
218°, 67%, 41%
CMYK
80, 50, 0, 32
Luminance
0.1001

At a glance

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

Hex
#2256ad
Hue
218°
blue
Saturation
67%
vivid
Lightness
41%
dark
Brightness
68%
HSV value
Perceived
35%
weighted brightness
Luminance
0.1001
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
6.99:1
Closest name
Royal Blue
ΔE2000 9.8
Where it sits
Hue218° of 360°
Saturation67%
Lightness41%
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#2256ad
RGBrgb(34, 86, 173)
HSLhsl(218, 67%, 41%)
CMYKcmyk(80%, 50%, 0%, 32%)
LABlab(37.9 15.3 -51.4)
LCHlch(37.9 53.6 286.6)
OKLCHoklch(0.469 0.150 260.2)
Decimal2250413
Display P3color(display-p3 0.133 0.337 0.678)

Copy-ready code

/* CSS */
color: #2256ad;
background-color: #2256ad;
/* Tailwind (arbitrary) */
class="text-[#2256ad] bg-[#2256ad]"
/* SCSS */
$brand: #2256ad;
/* SwiftUI */
Color(red: 0.133, green: 0.337, blue: 0.678)
/* Android */
Color.parseColor("#2256ad")
/* Flutter */
Color(0xFF2256AD)
/* Python / OpenCV (BGR) */
(173, 86, 34)

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 #2256ad · 6.99:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.99:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.00:1
AA fail · AA large pass · AAA fail
Reading the other direction: #2256ad as text scores 6.99:1 on white and 3.00:1 on black.

Accessibility — WCAG contrast

Aa
#2256ad on white: 6.99:1
AA ✓ pass · AA-large · AAA
Aa
#2256ad on black: 3.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2060B0
deuteranopia · #0053AB
tritanopia · #006B79

Color scale — 50 to 950

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

#F3F6FB
#E8EEF8
#CAD9F1
#A1BDED
#729DE3
#447CDA
#2866CD
#2256ad
#1B4488
#173463
#0F203E
Base = 700Lightest = 50 · #F3F6FBDarkest = 950 · #0F203E
:root {
  --brand-50: #F3F6FB;
  --brand-100: #E8EEF8;
  --brand-200: #CAD9F1;
  --brand-300: #A1BDED;
  --brand-400: #729DE3;
  --brand-500: #447CDA;
  --brand-600: #2866CD;
  --brand-700: #2256ad;
  --brand-800: #1B4488;
  --brand-900: #173463;
  --brand-950: #0F203E;
  --brand: #2256ad;
  --brand-ink: #ffffff;
}

Colors that work with #2256ad

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#C0D1ED
Hairlines and dividers
Muted text#4B699B
Captions on the surface
Accent#B1551E
Second voice, not a rival
Dark variant#15356B
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 #2256ad

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#AD7922
Analogous left#229BAD
Analogous right#3422AD
Split-complement 1#AD3422
Split-complement 2#9BAD22
Triadic 1#AD2256
Triadic 2#56AD22
Tetradic#AD229B

RGB percentages

Red13.3%
Green33.7%
Blue67.8%

CMYK percentages

Cyan80.3%
Magenta50.3%
Yellow0.0%
Key (black)32.2%

Color previews

#2256ad text on a black background

contrast 3.00:1

Card sample

#2256ad text on a white background

contrast 6.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2256ad;
Background color
Panel with #2256ad background
background-color: #2256ad;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #2256ad;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(34, 86, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(34, 86, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2256ad;
background: linear-gradient(135deg, #2256ad, #4B22AD);

Monochromatic scale

Palettes built from #2256ad

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.

#2256ad 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.

#2256ad, answered

What color is #2256ad?

#2256ad is a dark vivid blue, closest to Royal Blue (ΔE2000 9.8). It sits at 218° on the hue wheel with 67% saturation and 41% lightness, which reads as cool.

What is the RGB value of #2256ad?

rgb(34, 86, 173) — 34 red, 86 green and 173 blue out of 255, or 13.3% / 33.7% / 67.8% by channel.

Is #2256ad a light or a dark color?

It is a dark color. Relative luminance is 0.1001 and perceived brightness is 35%, so white text on it reaches 6.99:1.

Should I use black or white text on #2256ad?

White. It scores 6.99:1 against #2256ad, versus 3.00:1 for black — AA at any size.

What is the complementary color of #2256ad?

#AD7922 sits directly opposite on the wheel. Softer options are the split-complements #AD3422 and #9BAD22, which give the same contrast with far less vibration.

What colors go well with #2256ad?

For interface work: #F4F7FA as the surface, #C0D1ED for borders, #4B699B for secondary text, #B1551E as an accent and #15356B for hover and pressed states. For a palette, the analogous pair #229BAD and #3422AD stays calm, while #AD7922 is the loudest partner.

What is #2256ad in CMYK for printing?

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

Is #2256ad 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 #2223AD; nudged cooler, #1C529A.

Work with #2256ad in the Color Lab