#40356A#40356A

#40356A is a dark, moderate violet. Relative luminance 0.047; OKLCH L 36.8% C 0.089 H 290.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#40356A
RGBrgb(64, 53, 106)
HSLhsl(252, 33%, 31%)
HSVhsv(252, 50%, 42%)
CMYKcmyk(39.6%, 50%, 0%, 58.4%)
CIE-LABlab(25.79, 18.82, -29.41)
CIE-LCHlch(25.79, 34.92, 302.61°)
OKLaboklab(36.79% 0.0318 -0.0831)
OKLCHoklch(36.79% 0.089 290.9)
XYZxyz(5.9883, 4.6766, 14.2201)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40356A #5F6A35
analogous
#35446A #40356A #5A356A
triadic
#40356A #6A4035 #356A40
tetradic
#40356A #6A3544 #5F6A35 #356A5A
square
#40356A #6A3544 #5F6A35 #356A5A
split-complementary
#40356A #6A5A35 #446A35
monochromatic
#0F0C18 #272141 #40356A #594993 #7667B3

Accessibility & contrast

On white

10.85
#40356A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#40356A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40356A
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40356A#FFFFFF#000000##FFFFFF
##40356A1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223E6C
Deuteranopia (green-blind)
#233C69
Tritanopia (blue-blind)
#353F4A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #40356a;
/* rgb */ color: rgb(64, 53, 106);
/* oklch */ color: oklch(36.8% 0.089 290.9);
Tailwind
colors: {
  custom: {
    50: '#776c95',
    500: '#40356a',
    950: '#000000',
  },
}
SCSS
$custom: #40356a;
$custom-light: #776c95;
$custom-dark: #000000;
JSON
{
  "hex": "#40356a",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 106
  },
  "hsl": {
    "h": 252.453,
    "s": 33.333,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.08893,
    "h": 290.9
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#40356A
secondary
#8F9B60
accent
#C95EB3
background
#F7F6F9
surface
#EDEBF1
border
#C8C6CB
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40356A

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

Preview Lab → · Contrast checker → · Palette generator →

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