#40326E#40326E

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

Color values

HEX#40326E
RGBrgb(64, 50, 110)
HSLhsl(254, 38%, 31%)
HSVhsv(254, 55%, 43%)
CMYKcmyk(41.8%, 54.5%, 0%, 56.9%)
CIE-LABlab(25.25, 22.04, -32.85)
CIE-LCHlch(25.25, 39.56, 303.86°)
OKLaboklab(36.46% 0.0365 -0.0931)
OKLCHoklch(36.46% 0.1 291.4)
XYZxyz(6.0687, 4.4968, 15.2971)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40326E #606E32
analogous
#32426E #40326E #5E326E
triadic
#40326E #6E4032 #326E40
tetradic
#40326E #6E3242 #606E32 #326E5E
square
#40326E #6E3242 #606E32 #326E5E
split-complementary
#40326E #6E5E32 #426E32
monochromatic
#0F0C1A #281F44 #40326E #584598 #7663B8

Accessibility & contrast

On white

11.06
#40326E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40326E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40326E#FFFFFF#000000##FFFFFF
##40326E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193D70
Deuteranopia (green-blind)
#1B3B6D
Tritanopia (blue-blind)
#343E4B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40326e;
/* rgb */ color: rgb(64, 50, 110);
/* oklch */ color: oklch(36.5% 0.100 291.4);
Tailwind
colors: {
  custom: {
    50: '#786a98',
    500: '#40326e',
    950: '#000000',
  },
}
SCSS
$custom: #40326e;
$custom-light: #786a98;
$custom-dark: #000000;
JSON
{
  "hex": "#40326e",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 110
  },
  "hsl": {
    "h": 254,
    "s": 37.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.10003,
    "h": 291.4
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#40326E
secondary
#909F5D
accent
#CD5AB3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #40326E

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

Preview Lab → · Contrast checker → · Palette generator →

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