#40326F#40326F

#40326F is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.5% C 0.102 H 291.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#40326F
RGBrgb(64, 50, 111)
HSLhsl(254, 38%, 32%)
HSVhsv(254, 55%, 44%)
CMYKcmyk(42.3%, 55%, 0%, 56.5%)
CIE-LABlab(25.32, 22.35, -33.38)
CIE-LCHlch(25.32, 40.18, 303.80°)
OKLaboklab(36.54% 0.0365 -0.0947)
OKLCHoklch(36.54% 0.102 291.1)
XYZxyz(6.1234, 4.5187, 15.5854)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40326F #616F32
analogous
#32436F #40326F #5F326F
triadic
#40326F #6F4032 #326F40
tetradic
#40326F #6F3243 #616F32 #326F5F
square
#40326F #6F3243 #616F32 #326F5F
split-complementary
#40326F #6F5F32 #436F32
monochromatic
#0F0C1B #281F45 #40326F #584599 #7663B9

Accessibility & contrast

On white

11.03
#40326F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40326F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40326F#FFFFFF#000000##FFFFFF
##40326F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173D71
Deuteranopia (green-blind)
#1A3B6E
Tritanopia (blue-blind)
#333F4B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40326f;
/* rgb */ color: rgb(64, 50, 111);
/* oklch */ color: oklch(36.5% 0.102 291.1);
Tailwind
colors: {
  custom: {
    50: '#786a99',
    500: '#40326f',
    950: '#000000',
  },
}
SCSS
$custom: #40326f;
$custom-light: #786a99;
$custom-dark: #000000;
JSON
{
  "hex": "#40326f",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 111
  },
  "hsl": {
    "h": 253.77,
    "s": 37.888,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36535,
    "c": 0.10151,
    "h": 291.1
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#40326F
secondary
#91A05D
accent
#CE5AB3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #40326F

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

Preview Lab → · Contrast checker → · Palette generator →

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