#403266#403266

#403266 is a dark, moderate violet. Relative luminance 0.043; OKLCH L 35.9% C 0.088 H 293.9°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#403266
RGBrgb(64, 50, 102)
HSLhsl(256, 34%, 30%)
HSVhsv(256, 51%, 40%)
CMYKcmyk(37.3%, 51%, 0%, 60%)
CIE-LABlab(24.73, 19.59, -28.52)
CIE-LCHlch(24.73, 34.59, 304.48°)
OKLaboklab(35.91% 0.0357 -0.0804)
OKLCHoklch(35.91% 0.088 293.9)
XYZxyz(5.6526, 4.3304, 13.1058)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403266 #586632
analogous
#323E66 #403266 #5A3266
triadic
#403266 #664032 #326640
tetradic
#403266 #66323E #586632 #32665A
square
#403266 #66323E #586632 #32665A
split-complementary
#403266 #665A32 #3E6632
monochromatic
#0D0A15 #261E3D #403266 #5A468F #7761B2

Accessibility & contrast

On white

11.25
#403266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#403266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403266
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403266#FFFFFF#000000##FFFFFF
##4032661.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203B68
Deuteranopia (green-blind)
#223A65
Tritanopia (blue-blind)
#373C47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403266;
/* rgb */ color: rgb(64, 50, 102);
/* oklch */ color: oklch(35.9% 0.088 293.9);
Tailwind
colors: {
  custom: {
    50: '#776a92',
    500: '#403266',
    950: '#000000',
  },
}
SCSS
$custom: #403266;
$custom-light: #776a92;
$custom-dark: #000000;
JSON
{
  "hex": "#403266",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 102
  },
  "hsl": {
    "h": 256.154,
    "s": 34.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35912,
    "c": 0.08799,
    "h": 293.9
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#403266
secondary
#87975D
accent
#CA5EAD
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #403266

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#403266 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva