#400A9E

A color in the Violet family

#400a9e is a color in the Violet family: RGB(64, 10, 158), HSL(262°, 88%, 33%), CMYK(59%, 94%, 0%, 38%). Closest named color: indigo. Contrast is 11.96:1 on white and 1.76:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#400a9e
RGBrgb(64 10 158)
RGB (legacy)rgb(64, 10, 158)
RGB %rgb(25% 4% 62%)
HSLhsl(262 88% 33%)
HSV / HSBhsv(262, 94%, 62%)
HWBhwb(262 4% 38%)
CMYKcmyk(59%, 94%, 0%, 38%)
CIELAB (D50)lab(21.69 48.51 -68.47)
LCHlch(21.69 83.91 305.32)
OKLaboklab(0.3614 0.0582 -0.1922)
OKLCHoklch(0.3614 0.2008 286.84)
Decimal4197022

Properties

Color ToneViolet
Closest named colorindigo ΔE 5.8
Closest web-safe color#330099
Hue262°
Saturation (HSL / HSV)88% / 94%
Lightness (HSL)33%
Brightness or Value (HSV)62%
Luminance (Rec.601 / Rec.709)17% / 13%
Relative luminance (WCAG)0.0378
Red / Green / Blue64 / 10 / 158

WCAG 2.2 Contrast Ratio

On White (#ffffff)
11.96:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.76: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 95.6 / 0 · As background with white / black text: Lc -99.4 / 8.3

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: #400a9e;
  --color-brand-oklch: oklch(36.14% 0.2008 286.84);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 158 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a9e] text-[#400a9e] border-[#400a9e]">