Skip to content

#35115d

a deep, vivid violet · cool · closest name: Midnight Blue

RGB
53, 17, 93
HSL
268°, 69%, 22%
CMYK
43, 82, 0, 64
Luminance
0.0195

At a glance

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

Hex
#35115d
Hue
268°
violet
Saturation
69%
vivid
Lightness
22%
deep
Brightness
36%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0195
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
15.11:1
Closest name
Midnight Blue
ΔE2000 6.7
Where it sits
Hue268° of 360°
Saturation69%
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#35115d
RGBrgb(53, 17, 93)
HSLhsl(268, 69%, 22%)
CMYKcmyk(43%, 82%, 0%, 64%)
LABlab(15.2 34.1 -38.0)
LCHlch(15.2 51.0 311.9)
OKLCHoklch(0.284 0.125 299.8)
Decimal3477853
Display P3color(display-p3 0.208 0.067 0.365)

Copy-ready code

/* CSS */
color: #35115d;
background-color: #35115d;
/* Tailwind (arbitrary) */
class="text-[#35115d] bg-[#35115d]"
/* SCSS */
$brand: #35115d;
/* SwiftUI */
Color(red: 0.208, green: 0.067, blue: 0.365)
/* Android */
Color.parseColor("#35115d")
/* Flutter */
Color(0xFF35115D)
/* Python / OpenCV (BGR) */
(93, 17, 53)

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

Accessibility — WCAG contrast

Aa
#35115d on white: 15.11:1
AA ✓ pass · AA-large · AAA
Aa
#35115d on black: 1.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00265F
deuteranopia · #00255C
tritanopia · #2C2536

Color scale — 50 to 950

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

#F7F3FB
#EFE7F8
#DDCAF2
#C5A0EE
#A871E5
#8B41DC
#7626CF
#6220AC
#4F198A
#35115d
#250E3F
Base = 900Lightest = 50 · #F7F3FBDarkest = 950 · #250E3F
:root {
  --brand-50: #F7F3FB;
  --brand-100: #EFE7F8;
  --brand-200: #DDCAF2;
  --brand-300: #C5A0EE;
  --brand-400: #A871E5;
  --brand-500: #8B41DC;
  --brand-600: #7626CF;
  --brand-700: #6220AC;
  --brand-800: #4F198A;
  --brand-900: #35115d;
  --brand-950: #250E3F;
  --brand: #35115d;
  --brand-ink: #ffffff;
}

Colors that work with #35115d

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#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#4D5F0F
Second voice, not a rival
Dark variant#3D146C
Hover, pressed, headers
Light variant#F2E9FB
Selected rows, tints
Dark surface#1C1424
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 #35115d

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#395D11
Analogous left#11135D
Analogous right#5B115D
Split-complement 1#5D5B11
Split-complement 2#135D11
Triadic 1#5D3511
Triadic 2#115D35
Tetradic#5D1113

RGB percentages

Red20.8%
Green6.7%
Blue36.5%

CMYK percentages

Cyan43.0%
Magenta81.7%
Yellow0.0%
Key (black)63.5%

Color previews

#35115d text on a black background

contrast 1.39:1

Card sample

#35115d text on a white background

contrast 15.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #35115d;
Background color
Panel with #35115d background
background-color: #35115d;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(53, 17, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(53, 17, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #35115d;
background: linear-gradient(135deg, #35115d, #5D1152);

Monochromatic scale

Palettes built from #35115d

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.

#35115d 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

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

#35115d, answered

What color is #35115d?

#35115d is a deep vivid violet, closest to Midnight Blue (ΔE2000 6.7). It sits at 268° on the hue wheel with 69% saturation and 22% lightness, which reads as cool.

What is the RGB value of #35115d?

rgb(53, 17, 93) — 53 red, 17 green and 93 blue out of 255, or 20.8% / 6.7% / 36.5% by channel.

Is #35115d a light or a dark color?

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

Should I use black or white text on #35115d?

White. It scores 15.11:1 against #35115d, versus 1.39:1 for black — AAA at any size.

What is the complementary color of #35115d?

#395D11 sits directly opposite on the wheel. Softer options are the split-complements #5D5B11 and #135D11, which give the same contrast with far less vibration.

What colors go well with #35115d?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #4D5F0F as an accent and #3D146C for hover and pressed states. For a palette, the analogous pair #11135D and #5B115D stays calm, while #395D11 is the loudest partner.

What is #35115d in CMYK for printing?

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

Is #35115d 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 #51115D; nudged cooler, #18105E.

Work with #35115d in the Color Lab