#40327D#40327D

#40327D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.6% C 0.122 H 287.6°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#40327D
RGBrgb(64, 50, 125)
HSLhsl(251, 43%, 34%)
HSVhsv(251, 60%, 49%)
CMYKcmyk(48.8%, 60%, 0%, 51%)
CIE-LABlab(26.31, 26.78, -40.68)
CIE-LCHlch(26.31, 48.71, 303.35°)
OKLaboklab(37.59% 0.0369 -0.1162)
OKLCHoklch(37.59% 0.122 287.6)
XYZxyz(6.9556, 4.8516, 19.9680)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40327D #6F7D32
analogous
#324A7D #40327D #66327D
triadic
#40327D #7D4032 #327D40
tetradic
#40327D #7D324A #6F7D32 #327D66
square
#40327D #7D324A #6F7D32 #327D66
split-complementary
#40327D #7D6632 #4A7D32
monochromatic
#130F26 #2A2151 #40327D #5643A9 #7867C2

Accessibility & contrast

On white

10.66
#40327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#40327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40327D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40327D#FFFFFF#000000##FFFFFF
##40327D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#2C4352
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40327d;
/* rgb */ color: rgb(64, 50, 125);
/* oklch */ color: oklch(37.6% 0.122 287.6);
Tailwind
colors: {
  custom: {
    50: '#7a6aa3',
    500: '#40327d',
    950: '#000000',
  },
}
SCSS
$custom: #40327d;
$custom-light: #7a6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#40327d",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 251.2,
    "s": 42.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37585,
    "c": 0.12189,
    "h": 287.6
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#40327D
secondary
#9CAA61
accent
#D355BB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #40327D

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

Preview Lab → · Contrast checker → · Palette generator →

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