#40327F#40327F

#40327F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.7% C 0.125 H 287.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#40327F
RGBrgb(64, 50, 127)
HSLhsl(251, 44%, 35%)
HSVhsv(251, 61%, 50%)
CMYKcmyk(49.6%, 60.6%, 0%, 50.2%)
CIE-LABlab(26.46, 27.42, -41.70)
CIE-LCHlch(26.46, 49.91, 303.33°)
OKLaboklab(37.74% 0.0369 -0.1192)
OKLCHoklch(37.74% 0.125 287.2)
XYZxyz(7.0846, 4.9032, 20.6477)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40327F #717F32
analogous
#324B7F #40327F #67327F
triadic
#40327F #7F4032 #327F40
tetradic
#40327F #7F324B #717F32 #327F67
square
#40327F #7F324B #717F32 #327F67
split-complementary
#40327F #7F6732 #4B7F32
monochromatic
#140F27 #2A2153 #40327F #5643AB #7968C4

Accessibility & contrast

On white

10.60
#40327F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#40327F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40327F
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40327F#FFFFFF#000000##FFFFFF
##40327F1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#2B4453
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40327f;
/* rgb */ color: rgb(64, 50, 127);
/* oklch */ color: oklch(37.7% 0.125 287.2);
Tailwind
colors: {
  custom: {
    50: '#7a6aa5',
    500: '#40327f',
    950: '#000000',
  },
}
SCSS
$custom: #40327f;
$custom-light: #7a6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#40327f",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 127
  },
  "hsl": {
    "h": 250.909,
    "s": 43.503,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37743,
    "c": 0.12474,
    "h": 287.2
  },
  "luminance": 0.04903
}

Semantic roles & 50–950 ramp

primary
#40327F
secondary
#9EAB62
accent
#D355BC
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #40327F

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

Preview Lab → · Contrast checker → · Palette generator →

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