#40316A#40316A

#40316A is a dark, moderate violet. Relative luminance 0.043; OKLCH L 36.0% C 0.096 H 293.1°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#40316A
RGBrgb(64, 49, 106)
HSLhsl(256, 37%, 30%)
HSVhsv(256, 54%, 42%)
CMYKcmyk(39.6%, 53.8%, 0%, 58.4%)
CIE-LABlab(24.72, 21.46, -31.12)
CIE-LCHlch(24.72, 37.80, 304.60°)
OKLaboklab(35.99% 0.0376 -0.0881)
OKLCHoklch(35.99% 0.096 293.1)
XYZxyz(5.8135, 4.3271, 14.1618)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40316A #5B6A31
analogous
#313F6A #40316A #5C316A
triadic
#40316A #6A4031 #316A40
tetradic
#40316A #6A313F #5B6A31 #316A5C
square
#40316A #6A313F #5B6A31 #316A5C
split-complementary
#40316A #6A5C31 #3F6A31
monochromatic
#0D0A16 #271E40 #40316A #594494 #7660B5

Accessibility & contrast

On white

11.26
#40316A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#40316A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40316A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40316A#FFFFFF#000000##FFFFFF
##40316A1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3B6C
Deuteranopia (green-blind)
#1D3A69
Tritanopia (blue-blind)
#363C48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #40316a;
/* rgb */ color: rgb(64, 49, 106);
/* oklch */ color: oklch(36.0% 0.096 293.1);
Tailwind
colors: {
  custom: {
    50: '#776995',
    500: '#40316a',
    950: '#000000',
  },
}
SCSS
$custom: #40316a;
$custom-light: #776995;
$custom-dark: #000000;
JSON
{
  "hex": "#40316a",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 255.789,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35986,
    "c": 0.09574,
    "h": 293.1
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#40316A
secondary
#8A9B5C
accent
#CD5BAF
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #40316A

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

Preview Lab → · Contrast checker → · Palette generator →

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