#403168#403168

#403168 is a dark, moderate violet. Relative luminance 0.043; OKLCH L 35.8% C 0.093 H 293.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#403168
RGBrgb(64, 49, 104)
HSLhsl(256, 36%, 30%)
HSVhsv(256, 53%, 41%)
CMYKcmyk(38.5%, 52.9%, 0%, 59.2%)
CIE-LABlab(24.60, 20.85, -30.03)
CIE-LCHlch(24.60, 36.56, 304.78°)
OKLaboklab(35.85% 0.0374 -0.0849)
OKLCHoklch(35.85% 0.093 293.8)
XYZxyz(5.7107, 4.2860, 13.6204)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403168 #596831
analogous
#313D68 #403168 #5C3168
triadic
#403168 #684031 #316840
tetradic
#403168 #68313D #596831 #31685C
square
#403168 #68313D #596831 #31685C
split-complementary
#403168 #685C31 #3D6831
monochromatic
#0D0A15 #261D3E #403168 #5A4592 #7760B4

Accessibility & contrast

On white

11.31
#403168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#403168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403168
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403168#FFFFFF#000000##FFFFFF
##4031681.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3B6A
Deuteranopia (green-blind)
#1F3967
Tritanopia (blue-blind)
#363C47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #403168;
/* rgb */ color: rgb(64, 49, 104);
/* oklch */ color: oklch(35.8% 0.093 293.8);
Tailwind
colors: {
  custom: {
    50: '#776993',
    500: '#403168',
    950: '#000000',
  },
}
SCSS
$custom: #403168;
$custom-light: #776993;
$custom-dark: #000000;
JSON
{
  "hex": "#403168",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 104
  },
  "hsl": {
    "h": 256.364,
    "s": 35.948,
    "l": 30
  },
  "oklch": {
    "l": 0.35848,
    "c": 0.09274,
    "h": 293.8
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#403168
secondary
#88995C
accent
#CC5CAD
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #403168

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

Preview Lab → · Contrast checker → · Palette generator →

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