Skip to content

#1f0c02

a deep, electric orange · warm · closest name: Black

RGB
31, 12, 2
HSL
21°, 88%, 7%
CMYK
0, 61, 94, 88
Luminance
0.0056

At a glance

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

Hex
#1f0c02
Hue
21°
orange
Saturation
88%
electric
Lightness
7%
deep
Brightness
12%
HSV value
Perceived
8%
weighted brightness
Luminance
0.0056
WCAG relative
Temperature
Warm
5/100 cool
Color family
Orange
Tone
Electric
Best ink
White
18.89:1
Closest name
Black
ΔE2000 10.4
Where it sits
Hue21° of 360°
Saturation88%
Lightness7%
Temperature
Warm ← → Cool5% 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#1f0c02
RGBrgb(31, 12, 2)
HSLhsl(21, 88%, 7%)
CMYKcmyk(0%, 61%, 94%, 88%)
LABlab(5.0 7.2 6.9)
LCHlch(5.0 10.0 43.5)
OKLCHoklch(0.181 0.040 52.6)
Decimal2034690
Display P3color(display-p3 0.122 0.047 0.008)

Copy-ready code

/* CSS */
color: #1f0c02;
background-color: #1f0c02;
/* Tailwind (arbitrary) */
class="text-[#1f0c02] bg-[#1f0c02]"
/* SCSS */
$brand: #1f0c02;
/* SwiftUI */
Color(red: 0.122, green: 0.047, blue: 0.008)
/* Android */
Color.parseColor("#1f0c02")
/* Flutter */
Color(0xFF1F0C02)
/* Python / OpenCV (BGR) */
(2, 12, 31)

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

Accessibility — WCAG contrast

Aa
#1f0c02 on white: 18.89:1
AA ✓ pass · AA-large · AAA
Aa
#1f0c02 on black: 1.11:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #120E01
deuteranopia · #161302
tritanopia · #230809

Color scale — 50 to 950

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

#FDF6F2
#FAECE5
#F8D6C4
#F8B896
#F59461
#F1702C
#E6590F
#C04A0C
#993B0A
#6F2E0C
#1f0c02
Base = 950Lightest = 50 · #FDF6F2Darkest = 950 · #1f0c02
:root {
  --brand-50: #FDF6F2;
  --brand-100: #FAECE5;
  --brand-200: #F8D6C4;
  --brand-300: #F8B896;
  --brand-400: #F59461;
  --brand-500: #F1702C;
  --brand-600: #E6590F;
  --brand-700: #C04A0C;
  --brand-800: #993B0A;
  --brand-900: #6F2E0C;
  --brand-950: #1f0c02;
  --brand: #1f0c02;
  --brand-ink: #ffffff;
}

Colors that work with #1f0c02

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#FAF6F4
Tinted page background
Border#EDCFC0
Hairlines and dividers
Muted text#9B664B
Captions on the surface
Accent#011D20
Second voice, not a rival
Dark variant#782E08
Hover, pressed, headers
Light variant#FDEFE7
Selected rows, tints
Dark surface#241914
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 #1f0c02

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#02151F
Analogous left#1F0207
Analogous right#1F1B02
Split-complement 1#021F1B
Split-complement 2#02071F
Triadic 1#021F0C
Triadic 2#0C021F
Tetradic#071F02

RGB percentages

Red12.2%
Green4.7%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta61.3%
Yellow93.5%
Key (black)87.8%

Color previews

#1f0c02 text on a black background

contrast 1.11:1

Card sample

#1f0c02 text on a white background

contrast 18.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #1f0c02

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.

#1f0c02 in the real world

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

Industries
E-commerceFood deliveryLogisticsCreator tools
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#1f0c02, answered

What color is #1f0c02?

#1f0c02 is a deep electric orange, closest to Black (ΔE2000 10.4). It sits at 21° on the hue wheel with 88% saturation and 7% lightness, which reads as warm.

What is the RGB value of #1f0c02?

rgb(31, 12, 2) — 31 red, 12 green and 2 blue out of 255, or 12.2% / 4.7% / 0.8% by channel.

Is #1f0c02 a light or a dark color?

It is a dark color. Relative luminance is 0.0056 and perceived brightness is 8%, so white text on it reaches 18.89:1.

Should I use black or white text on #1f0c02?

White. It scores 18.89:1 against #1f0c02, versus 1.11:1 for black — AAA at any size.

What is the complementary color of #1f0c02?

#02151F sits directly opposite on the wheel. Softer options are the split-complements #021F1B and #02071F, which give the same contrast with far less vibration.

What colors go well with #1f0c02?

For interface work: #FAF6F4 as the surface, #EDCFC0 for borders, #9B664B for secondary text, #011D20 as an accent and #782E08 for hover and pressed states. For a palette, the analogous pair #1F0207 and #1F1B02 stays calm, while #02151F is the loudest partner.

What is #1f0c02 in CMYK for printing?

cmyk(0%, 61%, 94%, 88%). 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 #1f0c02 warm or cool?

Warm — it scores 5 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #371904; nudged cooler, #1F0202.

Work with #1f0c02 in the Color Lab