#403274

A color in the Violet family

#403274 is a color in the Violet family: RGB(64, 50, 116), HSL(253°, 40%, 33%), CMYK(45%, 57%, 0%, 55%). Closest named color: darkslateblue. Contrast is 10.9:1 on white and 1.93:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#403274
RGBrgb(64 50 116)
RGB (legacy)rgb(64, 50, 116)
RGB %rgb(25% 20% 45%)
HSLhsl(253 40% 33%)
HSV / HSBhsv(253, 57%, 45%)
HWBhwb(253 20% 55%)
CMYKcmyk(45%, 57%, 0%, 55%)
CIELAB (D50)lab(25.22 20.06 -36.55)
LCHlch(25.22 41.69 298.76)
OKLaboklab(0.369 0.0368 -0.1025)
OKLCHoklch(0.369 0.1089 289.76)
Decimal4207220

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 4.9
Closest web-safe color#333366
Hue253°
Saturation (HSL / HSV)40% / 57%
Lightness (HSL)33%
Brightness or Value (HSV)45%
Luminance (Rec.601 / Rec.709)24% / 23%
Relative luminance (WCAG)0.0463
Red / Green / Blue64 / 50 / 116

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.90:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.93: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 / -7.6 · As background with white / black text: Lc -98.9 / 8.9

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: #403274;
  --color-brand-oklch: oklch(36.9% 0.1089 289.76);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(64 50 116 / 50%); }
/* Tailwind CSS */
<div class="bg-[#403274] text-[#403274] border-[#403274]">