#400A33

A color in the Purple, Crimson, Magenta family

#400a33 is a color in the Purple, Crimson, Magenta family: RGB(64, 10, 51), HSL(314°, 73%, 15%), CMYK(0%, 84%, 20%, 75%). Closest named color: midnightblue. Contrast is 16.04:1 on white and 1.31:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#400a33
RGBrgb(64 10 51)
RGB (legacy)rgb(64, 10, 51)
RGB %rgb(25% 4% 20%)
HSLhsl(314 73% 15%)
HSV / HSBhsv(314, 84%, 25%)
HWBhwb(314 4% 75%)
CMYKcmyk(0%, 84%, 20%, 75%)
CIELAB (D50)lab(12.98 29.25 -12.09)
LCHlch(12.98 31.65 337.54)
OKLaboklab(0.2619 0.09 -0.0336)
OKLCHoklch(0.2619 0.0961 339.56)
Decimal4196915

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.04:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.31: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.3 / 0 · As background with white / black text: Lc -105 / 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: #400a33;
  --color-brand-oklch: oklch(26.19% 0.0961 339.56);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 51 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a33] text-[#400a33] border-[#400a33]">