#40327B#40327B

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

Color values

HEX#40327B
RGBrgb(64, 50, 123)
HSLhsl(252, 42%, 34%)
HSVhsv(252, 59%, 48%)
CMYKcmyk(48%, 59.3%, 0%, 51.8%)
CIE-LABlab(26.16, 26.14, -39.66)
CIE-LCHlch(26.16, 47.50, 303.39°)
OKLaboklab(37.43% 0.0369 -0.1132)
OKLCHoklch(37.43% 0.119 288.1)
XYZxyz(6.8291, 4.8010, 19.3019)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40327B #6D7B32
analogous
#32497B #40327B #65327B
triadic
#40327B #7B4032 #327B40
tetradic
#40327B #7B3249 #6D7B32 #327B65
square
#40327B #7B3249 #6D7B32 #327B65
split-complementary
#40327B #7B6532 #497B32
monochromatic
#130F24 #29204F #40327B #5744A7 #7866C1

Accessibility & contrast

On white

10.71
#40327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40327B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40327B#FFFFFF#000000##FFFFFF
##40327B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407D
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#2D4251
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40327b;
/* rgb */ color: rgb(64, 50, 123);
/* oklch */ color: oklch(37.4% 0.119 288.1);
Tailwind
colors: {
  custom: {
    50: '#7a6aa2',
    500: '#40327b',
    950: '#000000',
  },
}
SCSS
$custom: #40327b;
$custom-light: #7a6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#40327b",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 251.507,
    "s": 42.197,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37429,
    "c": 0.11903,
    "h": 288.1
  },
  "luminance": 0.04801
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40327B

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

Preview Lab → · Contrast checker → · Palette generator →

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