Skip to content

#2d01af

a dark, electric violet · cool · closest name: Medium Blue

RGB
45, 1, 175
HSL
255°, 99%, 35%
CMYK
74, 99, 0, 31
Luminance
0.0367

At a glance

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

Hex
#2d01af
Hue
255°
violet
Saturation
99%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0367
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Electric
Best ink
White
12.10:1
Closest name
Medium Blue
ΔE2000 3.7
Where it sits
Hue255° of 360°
Saturation99%
Lightness35%
Temperature
Warm ← → Cool75% 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#2d01af
RGBrgb(45, 1, 175)
HSLhsl(255, 99%, 35%)
CMYKcmyk(74%, 99%, 0%, 31%)
LABlab(22.6 60.2 -77.7)
LCHlch(22.6 98.3 307.8)
OKLCHoklch(0.361 0.225 275.5)
Decimal2949551
Display P3color(display-p3 0.176 0.004 0.686)

Copy-ready code

/* CSS */
color: #2d01af;
background-color: #2d01af;
/* Tailwind (arbitrary) */
class="text-[#2d01af] bg-[#2d01af]"
/* SCSS */
$brand: #2d01af;
/* SwiftUI */
Color(red: 0.176, green: 0.004, blue: 0.686)
/* Android */
Color.parseColor("#2d01af")
/* Flutter */
Color(0xFF2D01AF)
/* Python / OpenCV (BGR) */
(175, 1, 45)

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

Accessibility — WCAG contrast

Aa
#2d01af on white: 12.10:1
AA ✓ pass · AA-large · AAA
Aa
#2d01af on black: 1.73:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003CB3
deuteranopia · #002FAC
tritanopia · #004665

Color scale — 50 to 950

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

#F4F1FE
#EAE3FC
#CFC0FB
#AC8FFE
#8258FE
#5820FE
#3F01F3
#3401CB
#2d01af
#220675
#150349
Base = 800Lightest = 50 · #F4F1FEDarkest = 950 · #150349
:root {
  --brand-50: #F4F1FE;
  --brand-100: #EAE3FC;
  --brand-200: #CFC0FB;
  --brand-300: #AC8FFE;
  --brand-400: #8258FE;
  --brand-500: #5820FE;
  --brand-600: #3F01F3;
  --brand-700: #3401CB;
  --brand-800: #2d01af;
  --brand-900: #220675;
  --brand-950: #150349;
  --brand: #2d01af;
  --brand-ink: #ffffff;
}

Colors that work with #2d01af

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#F6F4FA
Tinted page background
Border#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#CBCC00
Second voice, not a rival
Dark variant#21017F
Hover, pressed, headers
Light variant#ECE6FF
Selected rows, tints
Dark surface#181424
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 #2d01af

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#83AF01
Analogous left#012CAF
Analogous right#8401AF
Split-complement 1#AF8401
Split-complement 2#2CAF01
Triadic 1#AF2D01
Triadic 2#01AF2D
Tetradic#AF012C

RGB percentages

Red17.6%
Green0.4%
Blue68.6%

CMYK percentages

Cyan74.3%
Magenta99.4%
Yellow0.0%
Key (black)31.4%

Color previews

#2d01af text on a black background

contrast 1.73:1

Card sample

#2d01af text on a white background

contrast 12.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2d01af;
Background color
Panel with #2d01af background
background-color: #2d01af;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 1, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 1, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d01af;
background: linear-gradient(135deg, #2d01af, #A101AF);

Monochromatic scale

Palettes built from #2d01af

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.

#2d01af in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2d01af, answered

What color is #2d01af?

#2d01af is a dark electric violet, closest to Medium Blue (ΔE2000 3.7). It sits at 255° on the hue wheel with 99% saturation and 35% lightness, which reads as cool.

What is the RGB value of #2d01af?

rgb(45, 1, 175) — 45 red, 1 green and 175 blue out of 255, or 17.6% / 0.4% / 68.6% by channel.

Is #2d01af a light or a dark color?

It is a dark color. Relative luminance is 0.0367 and perceived brightness is 25%, so white text on it reaches 12.10:1.

Should I use black or white text on #2d01af?

White. It scores 12.10:1 against #2d01af, versus 1.73:1 for black — AAA at any size.

What is the complementary color of #2d01af?

#83AF01 sits directly opposite on the wheel. Softer options are the split-complements #AF8401 and #2CAF01, which give the same contrast with far less vibration.

What colors go well with #2d01af?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #CBCC00 as an accent and #21017F for hover and pressed states. For a palette, the analogous pair #012CAF and #8401AF stays calm, while #83AF01 is the loudest partner.

What is #2d01af in CMYK for printing?

cmyk(74%, 99%, 0%, 31%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2d01af warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6D01AF; nudged cooler, #0014B0.

Work with #2d01af in the Color Lab