#400A82

A color in the Violet family

#400a82 is a color in the Violet family: RGB(64, 10, 130), HSL(267°, 86%, 27%), CMYK(51%, 92%, 0%, 49%). Closest named color: indigo. Contrast is 13.26:1 on white and 1.58:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#400a82
RGBrgb(64 10 130)
RGB (legacy)rgb(64, 10, 130)
RGB %rgb(25% 4% 51%)
HSLhsl(267 86% 27%)
HSV / HSBhsv(267, 92%, 51%)
HWBhwb(267 4% 49%)
CMYKcmyk(51%, 92%, 0%, 49%)
CIELAB (D50)lab(18.85 42.79 -55.78)
LCHlch(18.85 70.3 307.5)
OKLaboklab(0.3304 0.071 -0.1568)
OKLCHoklch(0.3304 0.1722 294.38)
Decimal4196994

Properties

Color ToneViolet
Closest named colorindigo ΔE 2.5
Closest web-safe color#330099
Hue267°
Saturation (HSL / HSV)86% / 92%
Lightness (HSL)27%
Brightness or Value (HSV)51%
Luminance (Rec.601 / Rec.709)16% / 12%
Relative luminance (WCAG)0.0292
Red / Green / Blue64 / 10 / 130

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.26:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.58: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 98.2 / 0 · As background with white / black text: Lc -101.7 / 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: #400a82;
  --color-brand-oklch: oklch(33.04% 0.1722 294.38);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 130 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a82] text-[#400a82] border-[#400a82]">