#400A7E

A color in the Violet family

#400a7e is a color in the Violet family: RGB(64, 10, 126), HSL(268°, 85%, 27%), CMYK(49%, 92%, 0%, 51%). Closest named color: indigo. Contrast is 13.44:1 on white and 1.56:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#400a7e
RGBrgb(64 10 126)
RGB (legacy)rgb(64, 10, 126)
RGB %rgb(25% 4% 49%)
HSLhsl(268 85% 27%)
HSV / HSBhsv(268, 92%, 49%)
HWBhwb(268 4% 51%)
CMYKcmyk(49%, 92%, 0%, 51%)
CIELAB (D50)lab(18.47 41.99 -53.87)
LCHlch(18.47 68.31 307.94)
OKLaboklab(0.3262 0.0728 -0.1515)
OKLCHoklch(0.3262 0.1681 295.68)
Decimal4196990

Properties

Color ToneViolet
Closest named colorindigo ΔE 2.5
Closest web-safe color#330066
Hue268°
Saturation (HSL / HSV)85% / 92%
Lightness (HSL)27%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)15% / 12%
Relative luminance (WCAG)0.0281
Red / Green / Blue64 / 10 / 126

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.44:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.56: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.6 / 0 · As background with white / black text: Lc -102 / 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: #400a7e;
  --color-brand-oklch: oklch(32.62% 0.1681 295.68);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 10 126 / 50%); }
/* Tailwind CSS */
<div class="bg-[#400a7e] text-[#400a7e] border-[#400a7e]">