#40327E#40327E

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

Color values

HEX#40327E
RGBrgb(64, 50, 126)
HSLhsl(251, 43%, 35%)
HSVhsv(251, 60%, 49%)
CMYKcmyk(49.2%, 60.3%, 0%, 50.6%)
CIE-LABlab(26.38, 27.10, -41.19)
CIE-LCHlch(26.38, 49.31, 303.34°)
OKLaboklab(37.66% 0.0369 -0.1177)
OKLCHoklch(37.66% 0.123 287.4)
XYZxyz(7.0198, 4.8773, 20.3061)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40327E #707E32
analogous
#324A7E #40327E #66327E
triadic
#40327E #7E4032 #327E40
tetradic
#40327E #7E324A #707E32 #327E66
square
#40327E #7E324A #707E32 #327E66
split-complementary
#40327E #7E6632 #4A7E32
monochromatic
#130F26 #2A2152 #40327E #5643AA #7868C3

Accessibility & contrast

On white

10.63
#40327E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40327E
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40327E#FFFFFF#000000##FFFFFF
##40327E1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#2B4353
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40327e;
/* rgb */ color: rgb(64, 50, 126);
/* oklch */ color: oklch(37.7% 0.123 287.4);
Tailwind
colors: {
  custom: {
    50: '#7a6aa4',
    500: '#40327e',
    950: '#000000',
  },
}
SCSS
$custom: #40327e;
$custom-light: #7a6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#40327e",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 126
  },
  "hsl": {
    "h": 251.053,
    "s": 43.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37664,
    "c": 0.12332,
    "h": 287.4
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40327E

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

Preview Lab → · Contrast checker → · Palette generator →

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