Skip to content

#240b13

a deep, vivid magenta / pink · warm · closest name: Black

RGB
36, 11, 19
HSL
341°, 53%, 9%
CMYK
0, 69, 47, 86
Luminance
0.0066

At a glance

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

Hex
#240b13
Hue
341°
magenta / pink
Saturation
53%
vivid
Lightness
9%
deep
Brightness
14%
HSV value
Perceived
9%
weighted brightness
Luminance
0.0066
WCAG relative
Temperature
Warm
27/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
18.55:1
Closest name
Black
ΔE2000 14.3
Where it sits
Hue341° of 360°
Saturation53%
Lightness9%
Temperature
Warm ← → Cool27% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#240b13
RGBrgb(36, 11, 19)
HSLhsl(341, 53%, 9%)
CMYKcmyk(0%, 69%, 47%, 86%)
LABlab(6.0 13.5 0.4)
LCHlch(6.0 13.6 1.6)
OKLCHoklch(0.193 0.044 1.9)
Decimal2362131
Display P3color(display-p3 0.141 0.043 0.075)

Copy-ready code

/* CSS */
color: #240b13;
background-color: #240b13;
/* Tailwind (arbitrary) */
class="text-[#240b13] bg-[#240b13]"
/* SCSS */
$brand: #240b13;
/* SwiftUI */
Color(red: 0.141, green: 0.043, blue: 0.075)
/* Android */
Color.parseColor("#240b13")
/* Flutter */
Color(0xFF240B13)
/* Python / OpenCV (BGR) */
(19, 11, 36)

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

Accessibility — WCAG contrast

Aa
#240b13 on white: 18.55:1
AA ✓ pass · AA-large · AAA
Aa
#240b13 on black: 1.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0F1013
deuteranopia · #161512
tritanopia · #27090E

Color scale — 50 to 950

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

#FBF4F6
#F6E9ED
#EDCED8
#E5A9BC
#D87E9B
#CA5379
#BC3963
#9C3052
#7D2642
#5B1F32
#240b13
Base = 950Lightest = 50 · #FBF4F6Darkest = 950 · #240b13
:root {
  --brand-50: #FBF4F6;
  --brand-100: #F6E9ED;
  --brand-200: #EDCED8;
  --brand-300: #E5A9BC;
  --brand-400: #D87E9B;
  --brand-500: #CA5379;
  --brand-600: #BC3963;
  --brand-700: #9C3052;
  --brand-800: #7D2642;
  --brand-900: #5B1F32;
  --brand-950: #240b13;
  --brand: #240b13;
  --brand-ink: #ffffff;
}

Colors that work with #240b13

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#FAF4F6
Tinted page background
Border#ECC0CE
Hairlines and dividers
Muted text#9B4B64
Captions on the surface
Accent#0A2516
Second voice, not a rival
Dark variant#621E34
Hover, pressed, headers
Light variant#F9EBF0
Selected rows, tints
Dark surface#241419
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 #240b13

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#0B241C
Analogous left#240B1F
Analogous right#240F0B
Split-complement 1#0B240F
Split-complement 2#0B1F24
Triadic 1#13240B
Triadic 2#0B1324
Tetradic#1F240B

RGB percentages

Red14.1%
Green4.3%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta69.4%
Yellow47.2%
Key (black)85.9%

Color previews

#240b13 text on a black background

contrast 1.13:1

Card sample

#240b13 text on a white background

contrast 18.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #240b13;
Background color
Panel with #240b13 background
background-color: #240b13;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(36, 11, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(36, 11, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #240b13;
background: linear-gradient(135deg, #240b13, #24140B);

Monochromatic scale

Palettes built from #240b13

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.

#240b13 in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#240b13, answered

What color is #240b13?

#240b13 is a deep vivid magenta / pink, closest to Black (ΔE2000 14.3). It sits at 341° on the hue wheel with 53% saturation and 9% lightness, which reads as warm.

What is the RGB value of #240b13?

rgb(36, 11, 19) — 36 red, 11 green and 19 blue out of 255, or 14.1% / 4.3% / 7.5% by channel.

Is #240b13 a light or a dark color?

It is a dark color. Relative luminance is 0.0066 and perceived brightness is 9%, so white text on it reaches 18.55:1.

Should I use black or white text on #240b13?

White. It scores 18.55:1 against #240b13, versus 1.13:1 for black — AAA at any size.

What is the complementary color of #240b13?

#0B241C sits directly opposite on the wheel. Softer options are the split-complements #0B240F and #0B1F24, which give the same contrast with far less vibration.

What colors go well with #240b13?

For interface work: #FAF4F6 as the surface, #ECC0CE for borders, #9B4B64 for secondary text, #0A2516 as an accent and #621E34 for hover and pressed states. For a palette, the analogous pair #240B1F and #240F0B stays calm, while #0B241C is the loudest partner.

What is #240b13 in CMYK for printing?

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

Is #240b13 warm or cool?

Warm — it scores 27 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #240C0B; nudged cooler, #240B1C.

Work with #240b13 in the Color Lab