#40327A#40327A

#40327A is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.4% C 0.118 H 288.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#40327A
RGBrgb(64, 50, 122)
HSLhsl(252, 42%, 34%)
HSVhsv(252, 59%, 48%)
CMYKcmyk(47.5%, 59%, 0%, 52.2%)
CIE-LABlab(26.09, 25.82, -39.15)
CIE-LCHlch(26.09, 46.89, 303.41°)
OKLaboklab(37.35% 0.0369 -0.1116)
OKLCHoklch(37.35% 0.118 288.3)
XYZxyz(6.7668, 4.7761, 18.9739)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40327A #6C7A32
analogous
#32487A #40327A #64327A
triadic
#40327A #7A4032 #327A40
tetradic
#40327A #7A3248 #6C7A32 #327A64
square
#40327A #7A3248 #6C7A32 #327A64
split-complementary
#40327A #7A6432 #487A32
monochromatic
#120E23 #29204F #40327A #5744A5 #7866C0

Accessibility & contrast

On white

10.74
#40327A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40327A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40327A
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40327A#FFFFFF#000000##FFFFFF
##40327A1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7C
Deuteranopia (green-blind)
#063C78
Tritanopia (blue-blind)
#2E4251
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40327a;
/* rgb */ color: rgb(64, 50, 122);
/* oklch */ color: oklch(37.4% 0.118 288.3);
Tailwind
colors: {
  custom: {
    50: '#796aa1',
    500: '#40327a',
    950: '#000000',
  },
}
SCSS
$custom: #40327a;
$custom-light: #796aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#40327a",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 122
  },
  "hsl": {
    "h": 251.667,
    "s": 41.86,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37352,
    "c": 0.11759,
    "h": 288.3
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#40327A
secondary
#9AA860
accent
#D256BA
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #40327A

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

Preview Lab → · Contrast checker → · Palette generator →

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