Skip to content

#af1f28

a dark, vivid red · warm · closest name: Brown

RGB
175, 31, 40
HSL
356°, 70%, 40%
CMYK
0, 82, 77, 31
Luminance
0.1025

At a glance

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

Hex
#af1f28
Hue
356°
red
Saturation
70%
vivid
Lightness
40%
dark
Brightness
69%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1025
WCAG relative
Temperature
Warm
19/100 cool
Color family
Red
Tone
Vivid
Best ink
White
6.89:1
Closest name
Brown
ΔE2000 2
Where it sits
Hue356° of 360°
Saturation70%
Lightness40%
Temperature
Warm ← → Cool19% 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#af1f28
RGBrgb(175, 31, 40)
HSLhsl(356, 70%, 40%)
CMYKcmyk(0%, 82%, 77%, 31%)
LABlab(38.3 56.0 33.1)
LCHlch(38.3 65.1 30.6)
OKLCHoklch(0.490 0.178 24.3)
Decimal11476776
Display P3color(display-p3 0.686 0.122 0.157)

Copy-ready code

/* CSS */
color: #af1f28;
background-color: #af1f28;
/* Tailwind (arbitrary) */
class="text-[#af1f28] bg-[#af1f28]"
/* SCSS */
$brand: #af1f28;
/* SwiftUI */
Color(red: 0.686, green: 0.122, blue: 0.157)
/* Android */
Color.parseColor("#af1f28")
/* Flutter */
Color(0xFFAF1F28)
/* Python / OpenCV (BGR) */
(40, 31, 175)

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 #af1f28 · 6.89:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.89:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.05:1
AA fail · AA large pass · AAA fail
Reading the other direction: #af1f28 as text scores 6.89:1 on white and 3.05:1 on black.

Accessibility — WCAG contrast

Aa
#af1f28 on white: 6.89:1
AA ✓ pass · AA-large · AAA
Aa
#af1f28 on black: 3.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4E4627
deuteranopia · #716522
tritanopia · #C10024

Color scale — 50 to 950

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

#FCF3F4
#F8E7E8
#F2C9CC
#EEA0A5
#E67077
#DD404A
#D0252F
#af1f28
#8B1920
#65161B
#3F0E11
Base = 700Lightest = 50 · #FCF3F4Darkest = 950 · #3F0E11
:root {
  --brand-50: #FCF3F4;
  --brand-100: #F8E7E8;
  --brand-200: #F2C9CC;
  --brand-300: #EEA0A5;
  --brand-400: #E67077;
  --brand-500: #DD404A;
  --brand-600: #D0252F;
  --brand-700: #af1f28;
  --brand-800: #8B1920;
  --brand-900: #65161B;
  --brand-950: #3F0E11;
  --brand: #af1f28;
  --brand-ink: #ffffff;
}

Colors that work with #af1f28

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#EDC0C3
Hairlines and dividers
Muted text#9B4B50
Captions on the surface
Accent#1BB183
Second voice, not a rival
Dark variant#6C1319
Hover, pressed, headers
Light variant#FBE9EA
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 #af1f28

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
  • 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#1FAFA6
Analogous left#AF1F70
Analogous right#AF5E1F
Split-complement 1#1FAF5E
Split-complement 2#1F70AF
Triadic 1#28AF1F
Triadic 2#1F28AF
Tetradic#70AF1F

RGB percentages

Red68.6%
Green12.2%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta82.3%
Yellow77.1%
Key (black)31.4%

Color previews

#af1f28 text on a black background

contrast 3.05:1

Card sample

#af1f28 text on a white background

contrast 6.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 31, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 31, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af1f28;
background: linear-gradient(135deg, #af1f28, #AF761F);

Monochromatic scale

Palettes built from #af1f28

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.

#af1f28 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.

#af1f28, answered

What color is #af1f28?

#af1f28 is a dark vivid red, closest to Brown (ΔE2000 2). It sits at 356° on the hue wheel with 70% saturation and 40% lightness, which reads as warm.

What is the RGB value of #af1f28?

rgb(175, 31, 40) — 175 red, 31 green and 40 blue out of 255, or 68.6% / 12.2% / 15.7% by channel.

Is #af1f28 a light or a dark color?

It is a dark color. Relative luminance is 0.1025 and perceived brightness is 39%, so white text on it reaches 6.89:1.

Should I use black or white text on #af1f28?

White. It scores 6.89:1 against #af1f28, versus 3.05:1 for black — AA at any size.

What is the complementary color of #af1f28?

#1FAFA6 sits directly opposite on the wheel. Softer options are the split-complements #1FAF5E and #1F70AF, which give the same contrast with far less vibration.

What colors go well with #af1f28?

For interface work: #FAF4F5 as the surface, #EDC0C3 for borders, #9B4B50 for secondary text, #1BB183 as an accent and #6C1319 for hover and pressed states. For a palette, the analogous pair #AF1F70 and #AF5E1F stays calm, while #1FAFA6 is the loudest partner.

What is #af1f28 in CMYK for printing?

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

Is #af1f28 warm or cool?

Warm — it scores 19 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF421F; nudged cooler, #B11D5C.

Work with #af1f28 in the Color Lab