#40326A#40326A

#40326A is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.2% C 0.094 H 292.6°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#40326A
RGBrgb(64, 50, 106)
HSLhsl(255, 36%, 31%)
HSVhsv(255, 53%, 42%)
CMYKcmyk(39.6%, 52.8%, 0%, 58.4%)
CIE-LABlab(24.99, 20.80, -30.70)
CIE-LCHlch(24.99, 37.08, 304.13°)
OKLaboklab(36.18% 0.0361 -0.0868)
OKLCHoklch(36.18% 0.094 292.6)
XYZxyz(5.8558, 4.4117, 14.1759)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40326A #5C6A32
analogous
#32406A #40326A #5C326A
triadic
#40326A #6A4032 #326A40
tetradic
#40326A #6A3240 #5C6A32 #326A5C
square
#40326A #6A3240 #5C6A32 #326A5C
split-complementary
#40326A #6A5C32 #406A32
monochromatic
#0E0B17 #271E40 #40326A #594694 #7662B5

Accessibility & contrast

On white

11.16
#40326A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#40326A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40326A
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40326A#FFFFFF#000000##FFFFFF
##40326A1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3C6C
Deuteranopia (green-blind)
#1F3A69
Tritanopia (blue-blind)
#353D49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #40326a;
/* rgb */ color: rgb(64, 50, 106);
/* oklch */ color: oklch(36.2% 0.094 292.6);
Tailwind
colors: {
  custom: {
    50: '#776a95',
    500: '#40326a',
    950: '#000000',
  },
}
SCSS
$custom: #40326a;
$custom-light: #776a95;
$custom-dark: #000000;
JSON
{
  "hex": "#40326a",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 106
  },
  "hsl": {
    "h": 255,
    "s": 35.897,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36183,
    "c": 0.09404,
    "h": 292.6
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#40326A
secondary
#8B9B5D
accent
#CC5CB0
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #40326A

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

Preview Lab → · Contrast checker → · Palette generator →

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