#3A052D

A color in the Purple, Crimson, Magenta family

#3a052d is a color in the Purple, Crimson, Magenta family: RGB(58, 5, 45), HSL(315°, 84%, 12%), CMYK(0%, 91%, 22%, 77%). Closest named color: midnightblue. Contrast is 16.94:1 on white and 1.24:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#3a052d
RGBrgb(58 5 45)
RGB (legacy)rgb(58, 5, 45)
RGB %rgb(23% 2% 18%)
HSLhsl(315 84% 12%)
HSV / HSBhsv(315, 91%, 23%)
HWBhwb(315 2% 77%)
CMYKcmyk(0%, 91%, 22%, 77%)
CIELAB (D50)lab(10.63 28.72 -11.46)
LCHlch(10.63 30.92 338.24)
OKLaboklab(0.2414 0.0887 -0.0318)
OKLCHoklch(0.2414 0.0943 340.25)
Decimal3802413

Properties

Color TonePurple, Crimson, Magenta
Closest named colormidnightblue ΔE 14.6
Closest web-safe color#330033
Hue315°
Saturation (HSL / HSV)84% / 91%
Lightness (HSL)12%
Brightness or Value (HSV)23%
Luminance (Rec.601 / Rec.709)10% / 8%
Relative luminance (WCAG)0.012
Red / Green / Blue58 / 5 / 45

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.94:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.24:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 103.1 / 0 · As background with white / black text: Lc -105.6 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #3a052d;
  --color-brand-oklch: oklch(24.14% 0.0943 340.25);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(58 5 45 / 50%); }
/* Tailwind CSS */
<div class="bg-[#3a052d] text-[#3a052d] border-[#3a052d]">