Skip to content

#400007

a deep, electric red · warm · closest name: Maroon

RGB
64, 0, 7
HSL
353°, 100%, 13%
CMYK
0, 100, 89, 75
Luminance
0.0111

At a glance

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

Hex
#400007
Hue
353°
red
Saturation
100%
electric
Lightness
13%
deep
Brightness
25%
HSV value
Perceived
14%
weighted brightness
Luminance
0.0111
WCAG relative
Temperature
Warm
20/100 cool
Color family
Red
Tone
Electric
Best ink
White
17.20:1
Closest name
Maroon
ΔE2000 16
Where it sits
Hue353° of 360°
Saturation100%
Lightness13%
Temperature
Warm ← → Cool20% 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#400007
RGBrgb(64, 0, 7)
HSLhsl(353, 100%, 13%)
CMYKcmyk(0%, 100%, 89%, 75%)
LABlab(9.8 30.1 12.7)
LCHlch(9.8 32.6 22.8)
OKLCHoklch(0.234 0.095 22.3)
Decimal4194311
Display P3color(display-p3 0.251 0.000 0.027)

Copy-ready code

/* CSS */
color: #400007;
background-color: #400007;
/* Tailwind (arbitrary) */
class="text-[#400007] bg-[#400007]"
/* SCSS */
$brand: #400007;
/* SwiftUI */
Color(red: 0.251, green: 0.000, blue: 0.027)
/* Android */
Color.parseColor("#400007")
/* Flutter */
Color(0xFF400007)
/* Python / OpenCV (BGR) */
(7, 0, 64)

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

Accessibility — WCAG contrast

Aa
#400007 on white: 17.20:1
AA ✓ pass · AA-large · AAA
Aa
#400007 on black: 1.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #151207
deuteranopia · #252005
tritanopia · #480003

Color scale — 50 to 950

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

#FEF1F2
#FCE3E6
#FCC0C7
#FF8F9B
#FF5769
#FF1F37
#F5001B
#CC0016
#A30012
#760511
#400007
Base = 950Lightest = 50 · #FEF1F2Darkest = 950 · #400007
:root {
  --brand-50: #FEF1F2;
  --brand-100: #FCE3E6;
  --brand-200: #FCC0C7;
  --brand-300: #FF8F9B;
  --brand-400: #FF5769;
  --brand-500: #FF1F37;
  --brand-600: #F5001B;
  --brand-700: #CC0016;
  --brand-800: #A30012;
  --brand-900: #760511;
  --brand-950: #400007;
  --brand: #400007;
  --brand-ink: #ffffff;
}

Colors that work with #400007

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#FAF4F5
Tinted page background
Border#EDC0C5
Hairlines and dividers
Muted text#9B4B53
Captions on the surface
Accent#004029
Second voice, not a rival
Dark variant#80000E
Hover, pressed, headers
Light variant#FFE5E8
Selected rows, tints
Dark surface#241415
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 #400007

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#004039
Analogous left#400027
Analogous right#401900
Split-complement 1#004019
Split-complement 2#002740
Triadic 1#074000
Triadic 2#000740
Tetradic#274000

RGB percentages

Red25.1%
Green0.0%
Blue2.7%

CMYK percentages

Cyan0.0%
Magenta100.0%
Yellow89.1%
Key (black)74.9%

Color previews

#400007 text on a black background

contrast 1.22:1

Card sample

#400007 text on a white background

contrast 17.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 0, 7, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 0, 7, 0.45);
Border & gradient
Gradient panel
border: 3px solid #400007;
background: linear-gradient(135deg, #400007, #402300);

Monochromatic scale

Palettes built from #400007

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.

#400007 in the real world

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

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#400007, answered

What color is #400007?

#400007 is a deep electric red, closest to Maroon (ΔE2000 16). It sits at 353° on the hue wheel with 100% saturation and 13% lightness, which reads as warm.

What is the RGB value of #400007?

rgb(64, 0, 7) — 64 red, 0 green and 7 blue out of 255, or 25.1% / 0% / 2.7% by channel.

Is #400007 a light or a dark color?

It is a dark color. Relative luminance is 0.0111 and perceived brightness is 14%, so white text on it reaches 17.20:1.

Should I use black or white text on #400007?

White. It scores 17.20:1 against #400007, versus 1.22:1 for black — AAA at any size.

What is the complementary color of #400007?

#004039 sits directly opposite on the wheel. Softer options are the split-complements #004019 and #002740, which give the same contrast with far less vibration.

What colors go well with #400007?

For interface work: #FAF4F5 as the surface, #EDC0C5 for borders, #9B4B53 for secondary text, #004029 as an accent and #80000E for hover and pressed states. For a palette, the analogous pair #400027 and #401900 stays calm, while #004039 is the loudest partner.

What is #400007 in CMYK for printing?

cmyk(0%, 100%, 89%, 75%). 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 #400007 warm or cool?

Warm — it scores 20 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #401000; nudged cooler, #40001E.

Work with #400007 in the Color Lab