Skip to content

#331f18

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

RGB
51, 31, 24
HSL
16°, 36%, 15%
CMYK
0, 39, 53, 80
Luminance
0.0175

At a glance

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

Hex
#331f18
Hue
16°
orange
Saturation
36%
soft
Lightness
15%
deep
Brightness
20%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0175
WCAG relative
Temperature
Warm
8/100 cool
Color family
Orange
Tone
Soft
Best ink
White
15.56:1
Closest name
Black
ΔE2000 14.4
Where it sits
Hue16° of 360°
Saturation36%
Lightness15%
Temperature
Warm ← → Cool8% 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#331f18
RGBrgb(51, 31, 24)
HSLhsl(16, 36%, 15%)
CMYKcmyk(0%, 39%, 53%, 80%)
LABlab(14.1 8.7 8.8)
LCHlch(14.1 12.3 45.2)
OKLCHoklch(0.263 0.034 40.1)
Decimal3350296
Display P3color(display-p3 0.200 0.122 0.094)

Copy-ready code

/* CSS */
color: #331f18;
background-color: #331f18;
/* Tailwind (arbitrary) */
class="text-[#331f18] bg-[#331f18]"
/* SCSS */
$brand: #331f18;
/* SwiftUI */
Color(red: 0.200, green: 0.122, blue: 0.094)
/* Android */
Color.parseColor("#331f18")
/* Flutter */
Color(0xFF331F18)
/* Python / OpenCV (BGR) */
(24, 31, 51)

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

Accessibility — WCAG contrast

Aa
#331f18 on white: 15.56:1
AA ✓ pass · AA-large · AAA
Aa
#331f18 on black: 1.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #242117
deuteranopia · #292518
tritanopia · #381C1D

Color scale — 50 to 950

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

#F9F6F5
#F4EEEB
#E8D9D3
#DBBDB3
#C99C8D
#B77B66
#A6654E
#8B5441
#6F4334
#513329
#331f18
Base = 950Lightest = 50 · #F9F6F5Darkest = 950 · #331f18
:root {
  --brand-50: #F9F6F5;
  --brand-100: #F4EEEB;
  --brand-200: #E8D9D3;
  --brand-300: #DBBDB3;
  --brand-400: #C99C8D;
  --brand-500: #B77B66;
  --brand-600: #A6654E;
  --brand-700: #8B5441;
  --brand-800: #6F4334;
  --brand-900: #513329;
  --brand-950: #331f18;
  --brand: #331f18;
  --brand-ink: #ffffff;
}

Colors that work with #331f18

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#FAF6F5
Tinted page background
Border#E5CFC8
Hairlines and dividers
Muted text#9B5F4B
Captions on the surface
Accent#163434
Second voice, not a rival
Dark variant#573529
Hover, pressed, headers
Light variant#F7F0EE
Selected rows, tints
Dark surface#241814
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 #331f18

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#182C33
Analogous left#33181E
Analogous right#332D18
Split-complement 1#18332D
Split-complement 2#181E33
Triadic 1#18331F
Triadic 2#1F1833
Tetradic#1E3318

RGB percentages

Red20.0%
Green12.2%
Blue9.4%

CMYK percentages

Cyan0.0%
Magenta39.2%
Yellow52.9%
Key (black)80.0%

Color previews

#331f18 text on a black background

contrast 1.35:1

Card sample

#331f18 text on a white background

contrast 15.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(51, 31, 24, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 31, 24, 0.45);
Border & gradient
Gradient panel
border: 3px solid #331f18;
background: linear-gradient(135deg, #331f18, #333118);

Monochromatic scale

Palettes built from #331f18

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.

#331f18 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

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

#331f18, answered

What color is #331f18?

#331f18 is a deep soft orange, closest to Black (ΔE2000 14.4). It sits at 16° on the hue wheel with 36% saturation and 15% lightness, which reads as warm.

What is the RGB value of #331f18?

rgb(51, 31, 24) — 51 red, 31 green and 24 blue out of 255, or 20% / 12.2% / 9.4% by channel.

Is #331f18 a light or a dark color?

It is a dark color. Relative luminance is 0.0175 and perceived brightness is 15%, so white text on it reaches 15.56:1.

Should I use black or white text on #331f18?

White. It scores 15.56:1 against #331f18, versus 1.35:1 for black — AAA at any size.

What is the complementary color of #331f18?

#182C33 sits directly opposite on the wheel. Softer options are the split-complements #18332D and #181E33, which give the same contrast with far less vibration.

What colors go well with #331f18?

For interface work: #FAF6F5 as the surface, #E5CFC8 for borders, #9B5F4B for secondary text, #163434 as an accent and #573529 for hover and pressed states. For a palette, the analogous pair #33181E and #332D18 stays calm, while #182C33 is the loudest partner.

What is #331f18 in CMYK for printing?

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

Is #331f18 warm or cool?

Warm — it scores 8 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #332318; nudged cooler, #34171A.

Work with #331f18 in the Color Lab