Skip to content

#310b13

a deep, vivid red · warm · closest name: Black

RGB
49, 11, 19
HSL
347°, 63%, 12%
CMYK
0, 78, 61, 81
Luminance
0.0094

At a glance

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

Hex
#310b13
Hue
347°
red
Saturation
63%
vivid
Lightness
12%
deep
Brightness
19%
HSV value
Perceived
11%
weighted brightness
Luminance
0.0094
WCAG relative
Temperature
Warm
24/100 cool
Color family
Red
Tone
Vivid
Best ink
White
17.68:1
Closest name
Black
ΔE2000 18.6
Where it sits
Hue347° of 360°
Saturation63%
Lightness12%
Temperature
Warm ← → Cool24% 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#310b13
RGBrgb(49, 11, 19)
HSLhsl(347, 63%, 12%)
CMYKcmyk(0%, 78%, 61%, 81%)
LABlab(8.5 20.0 4.3)
LCHlch(8.5 20.5 12.2)
OKLCHoklch(0.219 0.062 11.2)
Decimal3214099
Display P3color(display-p3 0.192 0.043 0.075)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#310b13 on white: 17.68:1
AA ✓ pass · AA-large · AAA
Aa
#310b13 on black: 1.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #141413
deuteranopia · #1E1B12
tritanopia · #36050E

Color scale — 50 to 950

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

#FBF4F5
#F7E8EB
#F0CBD3
#EAA3B2
#E0768C
#D64866
#C82D4D
#A72541
#851E34
#611A29
#310b13
Base = 950Lightest = 50 · #FBF4F5Darkest = 950 · #310b13
:root {
  --brand-50: #FBF4F5;
  --brand-100: #F7E8EB;
  --brand-200: #F0CBD3;
  --brand-300: #EAA3B2;
  --brand-400: #E0768C;
  --brand-500: #D64866;
  --brand-600: #C82D4D;
  --brand-700: #A72541;
  --brand-800: #851E34;
  --brand-900: #611A29;
  --brand-950: #310b13;
  --brand: #310b13;
  --brand-ink: #ffffff;
}

Colors that work with #310b13

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#EDC0C9
Hairlines and dividers
Muted text#9B4B5B
Captions on the surface
Accent#0A3220
Second voice, not a rival
Dark variant#681728
Hover, pressed, headers
Light variant#FAEAEE
Selected rows, tints
Dark surface#241417
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 #310b13

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#0B3129
Analogous left#310B26
Analogous right#31160B
Split-complement 1#0B3116
Split-complement 2#0B2631
Triadic 1#13310B
Triadic 2#0B1331
Tetradic#26310B

RGB percentages

Red19.2%
Green4.3%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta77.6%
Yellow61.2%
Key (black)80.8%

Color previews

#310b13 text on a black background

contrast 1.19:1

Card sample

#310b13 text on a white background

contrast 17.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #310b13

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.

#310b13 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

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

#310b13, answered

What color is #310b13?

#310b13 is a deep vivid red, closest to Black (ΔE2000 18.6). It sits at 347° on the hue wheel with 63% saturation and 12% lightness, which reads as warm.

What is the RGB value of #310b13?

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

Is #310b13 a light or a dark color?

It is a dark color. Relative luminance is 0.0094 and perceived brightness is 11%, so white text on it reaches 17.68:1.

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

White. It scores 17.68:1 against #310b13, versus 1.19:1 for black — AAA at any size.

What is the complementary color of #310b13?

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

What colors go well with #310b13?

For interface work: #FAF4F6 as the surface, #EDC0C9 for borders, #9B4B5B for secondary text, #0A3220 as an accent and #681728 for hover and pressed states. For a palette, the analogous pair #310B26 and #31160B stays calm, while #0B3129 is the loudest partner.

What is #310b13 in CMYK for printing?

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

Is #310b13 warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #31110B; nudged cooler, #320A21.

Work with #310b13 in the Color Lab