#403161#403161

#403161 is a dark, moderate violet. Relative luminance 0.042; OKLCH L 35.4% C 0.082 H 296.4°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#403161
RGBrgb(64, 49, 97)
HSLhsl(259, 33%, 29%)
HSVhsv(259, 49%, 38%)
CMYKcmyk(34%, 49.5%, 0%, 62%)
CIE-LABlab(24.16, 18.75, -26.18)
CIE-LCHlch(24.16, 32.20, 305.62°)
OKLaboklab(35.38% 0.0365 -0.0736)
OKLCHoklch(35.38% 0.082 296.4)
XYZxyz(5.3698, 4.1496, 11.8250)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403161 #526131
analogous
#313A61 #403161 #583161
triadic
#403161 #614031 #316140
tetradic
#403161 #61313A #526131 #316158
square
#403161 #61313A #526131 #316158
split-complementary
#403161 #615831 #3A6131
monochromatic
#0D0A14 #251C38 #403161 #5B468A #775EAE

Accessibility & contrast

On white

11.48
#403161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#403161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403161
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403161#FFFFFF#000000##FFFFFF
##4031611.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223A63
Deuteranopia (green-blind)
#243960
Tritanopia (blue-blind)
#393A44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403161;
/* rgb */ color: rgb(64, 49, 97);
/* oklch */ color: oklch(35.4% 0.082 296.4);
Tailwind
colors: {
  custom: {
    50: '#76698e',
    500: '#403161',
    950: '#000000',
  },
}
SCSS
$custom: #403161;
$custom-light: #76698e;
$custom-dark: #000000;
JSON
{
  "hex": "#403161",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 258.75,
    "s": 32.877,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35381,
    "c": 0.08216,
    "h": 296.4
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#403161
secondary
#81925C
accent
#C95FA8
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#09060C
muted
#7B7A7D

Preview Lab

Preview with #403161

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

Preview Lab → · Contrast checker → · Palette generator →

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