Skip to content

#381f41

a deep, soft violet · cool · closest name: Midnight Blue

RGB
56, 31, 65
HSL
284°, 35%, 19%
CMYK
14, 52, 0, 75
Luminance
0.0220

At a glance

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

Hex
#381f41
Hue
284°
violet
Saturation
35%
soft
Lightness
19%
deep
Brightness
25%
HSV value
Perceived
17%
weighted brightness
Luminance
0.0220
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Soft
Best ink
White
14.58:1
Closest name
Midnight Blue
ΔE2000 14.5
Where it sits
Hue284° of 360°
Saturation35%
Lightness19%
Temperature
Warm ← → Cool59% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#381f41
RGBrgb(56, 31, 65)
HSLhsl(284, 35%, 19%)
CMYKcmyk(14%, 52%, 0%, 75%)
LABlab(16.5 19.2 -16.8)
LCHlch(16.5 25.5 318.8)
OKLCHoklch(0.288 0.068 316.6)
Decimal3678017
Display P3color(display-p3 0.220 0.122 0.255)

Copy-ready code

/* CSS */
color: #381f41;
background-color: #381f41;
/* Tailwind (arbitrary) */
class="text-[#381f41] bg-[#381f41]"
/* SCSS */
$brand: #381f41;
/* SwiftUI */
Color(red: 0.220, green: 0.122, blue: 0.255)
/* Android */
Color.parseColor("#381f41")
/* Flutter */
Color(0xFF381F41)
/* Python / OpenCV (BGR) */
(65, 31, 56)

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

Accessibility — WCAG contrast

Aa
#381f41 on white: 14.58:1
AA ✓ pass · AA-large · AAA
Aa
#381f41 on black: 1.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #192742
deuteranopia · #202A40
tritanopia · #38242D

Color scale — 50 to 950

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

#F8F5F9
#F2EBF4
#E3D4E8
#D0B3DB
#B98DC9
#A167B7
#8F4FA6
#77428A
#5F356E
#472951
#381f41
Base = 950Lightest = 50 · #F8F5F9Darkest = 950 · #381f41
:root {
  --brand-50: #F8F5F9;
  --brand-100: #F2EBF4;
  --brand-200: #E3D4E8;
  --brand-300: #D0B3DB;
  --brand-400: #B98DC9;
  --brand-500: #A167B7;
  --brand-600: #8F4FA6;
  --brand-700: #77428A;
  --brand-800: #5F356E;
  --brand-900: #472951;
  --brand-950: #381f41;
  --brand: #381f41;
  --brand-ink: #ffffff;
}

Colors that work with #381f41

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#F9F5FA
Tinted page background
Border#DDC8E5
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#31431D
Second voice, not a rival
Dark variant#4A2956
Hover, pressed, headers
Light variant#F4EEF7
Selected rows, tints
Dark surface#201424
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 #381f41

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#28411F
Analogous left#271F41
Analogous right#411F39
Split-complement 1#39411F
Split-complement 2#1F4127
Triadic 1#41381F
Triadic 2#1F4138
Tetradic#41271F

RGB percentages

Red22.0%
Green12.2%
Blue25.5%

CMYK percentages

Cyan13.8%
Magenta52.3%
Yellow0.0%
Key (black)74.5%

Color previews

#381f41 text on a black background

contrast 1.44:1

Card sample

#381f41 text on a white background

contrast 14.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(56, 31, 65, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(56, 31, 65, 0.45);
Border & gradient
Gradient panel
border: 3px solid #381f41;
background: linear-gradient(135deg, #381f41, #411F33);

Monochromatic scale

Palettes built from #381f41

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.

#381f41 in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#381f41, answered

What color is #381f41?

#381f41 is a deep soft violet, closest to Midnight Blue (ΔE2000 14.5). It sits at 284° on the hue wheel with 35% saturation and 19% lightness, which reads as cool.

What is the RGB value of #381f41?

rgb(56, 31, 65) — 56 red, 31 green and 65 blue out of 255, or 22% / 12.2% / 25.5% by channel.

Is #381f41 a light or a dark color?

It is a dark color. Relative luminance is 0.0220 and perceived brightness is 17%, so white text on it reaches 14.58:1.

Should I use black or white text on #381f41?

White. It scores 14.58:1 against #381f41, versus 1.44:1 for black — AAA at any size.

What is the complementary color of #381f41?

#28411F sits directly opposite on the wheel. Softer options are the split-complements #39411F and #1F4127, which give the same contrast with far less vibration.

What colors go well with #381f41?

For interface work: #F9F5FA as the surface, #DDC8E5 for borders, #864B9B for secondary text, #31431D as an accent and #4A2956 for hover and pressed states. For a palette, the analogous pair #271F41 and #411F39 stays calm, while #28411F is the loudest partner.

What is #381f41 in CMYK for printing?

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

Is #381f41 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #411F3D; nudged cooler, #2B1E42.

Work with #381f41 in the Color Lab