#40326D#40326D

#40326D is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.4% C 0.099 H 291.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#40326D
RGBrgb(64, 50, 109)
HSLhsl(254, 37%, 31%)
HSVhsv(254, 54%, 43%)
CMYKcmyk(41.3%, 54.1%, 0%, 57.3%)
CIE-LABlab(25.18, 21.73, -32.31)
CIE-LCHlch(25.18, 38.94, 303.92°)
OKLaboklab(36.39% 0.0364 -0.0916)
OKLCHoklch(36.39% 0.099 291.7)
XYZxyz(6.0145, 4.4752, 15.0119)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40326D #5F6D32
analogous
#32416D #40326D #5D326D
triadic
#40326D #6D4032 #326D40
tetradic
#40326D #6D3241 #5F6D32 #326D5D
square
#40326D #6D3241 #5F6D32 #326D5D
split-complementary
#40326D #6D5D32 #416D32
monochromatic
#0F0C19 #271F43 #40326D #594597 #7662B7

Accessibility & contrast

On white

11.08
#40326D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#40326D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40326D
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40326D#FFFFFF#000000##FFFFFF
##40326D1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3D6F
Deuteranopia (green-blind)
#1C3B6C
Tritanopia (blue-blind)
#343E4A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40326d;
/* rgb */ color: rgb(64, 50, 109);
/* oklch */ color: oklch(36.4% 0.099 291.7);
Tailwind
colors: {
  custom: {
    50: '#786a97',
    500: '#40326d',
    950: '#000000',
  },
}
SCSS
$custom: #40326d;
$custom-light: #786a97;
$custom-dark: #000000;
JSON
{
  "hex": "#40326d",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 109
  },
  "hsl": {
    "h": 254.237,
    "s": 37.107,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36392,
    "c": 0.09854,
    "h": 291.7
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#40326D
secondary
#8F9E5D
accent
#CD5BB2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #40326D

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

Preview Lab → · Contrast checker → · Palette generator →

#40326D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva