#400A38

A color in the Purple, Crimson, Magenta family

#400a38 is a color in the Purple, Crimson, Magenta family: RGB(64, 10, 56), HSL(309°, 73%, 15%), CMYK(0%, 84%, 13%, 75%). Closest named color: indigo. Contrast is 15.93:1 on white and 1.32:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#400a38
RGBrgb(64 10 56)
RGB (legacy)rgb(64, 10, 56)
RGB %rgb(25% 4% 22%)
HSLhsl(309 73% 15%)
HSV / HSBhsv(309, 84%, 25%)
HWBhwb(309 4% 75%)
CMYKcmyk(0%, 84%, 13%, 75%)
CIELAB (D50)lab(13.22 29.88 -15.32)
LCHlch(13.22 33.58 332.85)
OKLaboklab(0.2649 0.0906 -0.0426)
OKLCHoklch(0.2649 0.1001 334.84)
Decimal4196920

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 13.3
Closest web-safe color#330033
Hue309°
Saturation (HSL / HSV)73% / 84%
Lightness (HSL)15%
Brightness or Value (HSV)25%
Luminance (Rec.601 / Rec.709)12% / 10%
Relative luminance (WCAG)0.0159
Red / Green / Blue64 / 10 / 56

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.93:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.32: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 102.2 / 0 · As background with white / black text: Lc -104.9 / 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: #400a38;
  --color-brand-oklch: oklch(26.49% 0.1001 334.84);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 56 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a38] text-[#400a38] border-[#400a38]">