Skip to content

#412ba2

a dark, vivid blue · cool · closest name: Dark Slate Blue

RGB
65, 43, 162
HSL
251°, 58%, 40%
CMYK
60, 74, 0, 37
Luminance
0.0546

At a glance

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

Hex
#412ba2
Hue
251°
blue
Saturation
58%
vivid
Lightness
40%
dark
Brightness
64%
HSV value
Perceived
29%
weighted brightness
Luminance
0.0546
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
10.04:1
Closest name
Dark Slate Blue
ΔE2000 6.7
Where it sits
Hue251° of 360°
Saturation58%
Lightness40%
Temperature
Warm ← → Cool77% 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#412ba2
RGBrgb(65, 43, 162)
HSLhsl(251, 58%, 40%)
CMYKcmyk(60%, 74%, 0%, 37%)
LABlab(28.0 42.9 -60.8)
LCHlch(28.0 74.4 305.2)
OKLCHoklch(0.398 0.180 283.0)
Decimal4271010
Display P3color(display-p3 0.255 0.169 0.635)

Copy-ready code

/* CSS */
color: #412ba2;
background-color: #412ba2;
/* Tailwind (arbitrary) */
class="text-[#412ba2] bg-[#412ba2]"
/* SCSS */
$brand: #412ba2;
/* SwiftUI */
Color(red: 0.255, green: 0.169, blue: 0.635)
/* Android */
Color.parseColor("#412ba2")
/* Flutter */
Color(0xFF412BA2)
/* Python / OpenCV (BGR) */
(162, 43, 65)

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 #412ba2 · 10.04:1
Use #ffffffAAA at every size.
Aa
White text · 10.04:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.09:1
AA fail · AA large fail · AAA fail
Reading the other direction: #412ba2 as text scores 10.04:1 on white and 2.09:1 on black.

Accessibility — WCAG contrast

Aa
#412ba2 on white: 10.04:1
AA ✓ pass · AA-large · AAA
Aa
#412ba2 on black: 2.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0046A5
deuteranopia · #003EA0
tritanopia · #004C64

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #412ba2 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.

#F5F4FB
#EBE9F7
#D3CDEF
#B2A6E7
#8C7ADC
#664ED0
#4E33C1
#412ba2
#342281
#291D5E
#19123B
Base = 700Lightest = 50 · #F5F4FBDarkest = 950 · #19123B
:root {
  --brand-50: #F5F4FB;
  --brand-100: #EBE9F7;
  --brand-200: #D3CDEF;
  --brand-300: #B2A6E7;
  --brand-400: #8C7ADC;
  --brand-500: #664ED0;
  --brand-600: #4E33C1;
  --brand-700: #412ba2;
  --brand-800: #342281;
  --brand-900: #291D5E;
  --brand-950: #19123B;
  --brand: #412ba2;
  --brand-ink: #ffffff;
}

Colors that work with #412ba2

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#F5F4FA
Tinted page background
Border#C8C0ED
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#A59D27
Second voice, not a rival
Dark variant#281B65
Hover, pressed, headers
Light variant#EEEBFA
Selected rows, tints
Dark surface#171424
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 #412ba2

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
  • Text on black or near-black surfaces
  • 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#8CA22B
Analogous left#2B51A2
Analogous right#7D2BA2
Split-complement 1#A27D2B
Split-complement 2#51A22B
Triadic 1#A2412B
Triadic 2#2BA241
Tetradic#A22B51

RGB percentages

Red25.5%
Green16.9%
Blue63.5%

CMYK percentages

Cyan59.9%
Magenta73.5%
Yellow0.0%
Key (black)36.5%

Color previews

#412ba2 text on a black background

contrast 2.09:1

Card sample

#412ba2 text on a white background

contrast 10.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #412ba2;
Background color
Panel with #412ba2 background
background-color: #412ba2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #412ba2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(65, 43, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(65, 43, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #412ba2;
background: linear-gradient(135deg, #412ba2, #902BA2);

Monochromatic scale

Palettes built from #412ba2

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.

#412ba2 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.

#412ba2, answered

What color is #412ba2?

#412ba2 is a dark vivid blue, closest to Dark Slate Blue (ΔE2000 6.7). It sits at 251° on the hue wheel with 58% saturation and 40% lightness, which reads as cool.

What is the RGB value of #412ba2?

rgb(65, 43, 162) — 65 red, 43 green and 162 blue out of 255, or 25.5% / 16.9% / 63.5% by channel.

Is #412ba2 a light or a dark color?

It is a dark color. Relative luminance is 0.0546 and perceived brightness is 29%, so white text on it reaches 10.04:1.

Should I use black or white text on #412ba2?

White. It scores 10.04:1 against #412ba2, versus 2.09:1 for black — AAA at any size.

What is the complementary color of #412ba2?

#8CA22B sits directly opposite on the wheel. Softer options are the split-complements #A27D2B and #51A22B, which give the same contrast with far less vibration.

What colors go well with #412ba2?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #A59D27 as an accent and #281B65 for hover and pressed states. For a palette, the analogous pair #2B51A2 and #7D2BA2 stays calm, while #8CA22B is the loudest partner.

What is #412ba2 in CMYK for printing?

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

Is #412ba2 warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6D2BA2; nudged cooler, #293FA4.

Work with #412ba2 in the Color Lab