Skip to content

#34026f

a deep, electric violet · cool · closest name: Indigo

RGB
52, 2, 111
HSL
268°, 97%, 22%
CMYK
53, 98, 0, 57
Luminance
0.0192

At a glance

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

Hex
#34026f
Hue
268°
violet
Saturation
97%
electric
Lightness
22%
deep
Brightness
44%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0192
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
15.17:1
Closest name
Indigo
ΔE2000 4.3
Where it sits
Hue268° of 360°
Saturation97%
Lightness22%
Temperature
Warm ← → Cool68% 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#34026f
RGBrgb(52, 2, 111)
HSLhsl(268, 97%, 22%)
CMYKcmyk(53%, 98%, 0%, 57%)
LABlab(15.1 44.3 -50.1)
LCHlch(15.1 66.9 311.5)
OKLCHoklch(0.289 0.157 293.7)
Decimal3408495
Display P3color(display-p3 0.204 0.008 0.435)

Copy-ready code

/* CSS */
color: #34026f;
background-color: #34026f;
/* Tailwind (arbitrary) */
class="text-[#34026f] bg-[#34026f]"
/* SCSS */
$brand: #34026f;
/* SwiftUI */
Color(red: 0.204, green: 0.008, blue: 0.435)
/* Android */
Color.parseColor("#34026f")
/* Flutter */
Color(0xFF34026F)
/* Python / OpenCV (BGR) */
(111, 2, 52)

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

Accessibility — WCAG contrast

Aa
#34026f on white: 15.17:1
AA ✓ pass · AA-large · AAA
Aa
#34026f on black: 1.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #002772
deuteranopia · #00246D
tritanopia · #20283E

Color scale — 50 to 950

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

#F7F1FD
#EFE4FC
#DBC1FB
#C291FD
#A45AFC
#8623FB
#7104F1
#5E04C8
#4B03A0
#34026f
#230448
Base = 900Lightest = 50 · #F7F1FDDarkest = 950 · #230448
:root {
  --brand-50: #F7F1FD;
  --brand-100: #EFE4FC;
  --brand-200: #DBC1FB;
  --brand-300: #C291FD;
  --brand-400: #A45AFC;
  --brand-500: #8623FB;
  --brand-600: #7104F1;
  --brand-700: #5E04C8;
  --brand-800: #4B03A0;
  --brand-900: #34026f;
  --brand-950: #230448;
  --brand: #34026f;
  --brand-ink: #ffffff;
}

Colors that work with #34026f

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#F7F4FA
Tinted page background
Border#D4C0ED
Hairlines and dividers
Muted text#6F4B9B
Captions on the surface
Accent#5A7100
Second voice, not a rival
Dark variant#3B027D
Hover, pressed, headers
Light variant#F1E6FF
Selected rows, tints
Dark surface#1B1424
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 #34026f

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#3D6F02
Analogous left#02076F
Analogous right#6B026F
Split-complement 1#6F6B02
Split-complement 2#076F02
Triadic 1#6F3402
Triadic 2#026F34
Tetradic#6F0207

RGB percentages

Red20.4%
Green0.8%
Blue43.5%

CMYK percentages

Cyan53.2%
Magenta98.2%
Yellow0.0%
Key (black)56.5%

Color previews

#34026f text on a black background

contrast 1.38:1

Card sample

#34026f text on a white background

contrast 15.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #34026f;
Background color
Panel with #34026f background
background-color: #34026f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(52, 2, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 2, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #34026f;
background: linear-gradient(135deg, #34026f, #6F0262);

Monochromatic scale

Palettes built from #34026f

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.

#34026f 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.

#34026f, answered

What color is #34026f?

#34026f is a deep electric violet, closest to Indigo (ΔE2000 4.3). It sits at 268° on the hue wheel with 97% saturation and 22% lightness, which reads as cool.

What is the RGB value of #34026f?

rgb(52, 2, 111) — 52 red, 2 green and 111 blue out of 255, or 20.4% / 0.8% / 43.5% by channel.

Is #34026f a light or a dark color?

It is a dark color. Relative luminance is 0.0192 and perceived brightness is 18%, so white text on it reaches 15.17:1.

Should I use black or white text on #34026f?

White. It scores 15.17:1 against #34026f, versus 1.38:1 for black — AAA at any size.

What is the complementary color of #34026f?

#3D6F02 sits directly opposite on the wheel. Softer options are the split-complements #6F6B02 and #076F02, which give the same contrast with far less vibration.

What colors go well with #34026f?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6F4B9B for secondary text, #5A7100 as an accent and #3B027D for hover and pressed states. For a palette, the analogous pair #02076F and #6B026F stays calm, while #3D6F02 is the loudest partner.

What is #34026f in CMYK for printing?

cmyk(53%, 98%, 0%, 57%). 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 #34026f warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5C026F; nudged cooler, #0B0170.

Work with #34026f in the Color Lab