#40356B#40356B

#40356B is a dark, moderate violet. Relative luminance 0.047; OKLCH L 36.9% C 0.090 H 290.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#40356B
RGBrgb(64, 53, 107)
HSLhsl(252, 34%, 31%)
HSVhsv(252, 50%, 42%)
CMYKcmyk(40.2%, 50.5%, 0%, 58%)
CIE-LABlab(25.86, 19.12, -29.96)
CIE-LCHlch(25.86, 35.54, 302.55°)
OKLaboklab(36.85% 0.0319 -0.0847)
OKLCHoklch(36.85% 0.09 290.6)
XYZxyz(6.0406, 4.6976, 14.4955)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40356B #606B35
analogous
#35456B #40356B #5B356B
triadic
#40356B #6B4035 #356B40
tetradic
#40356B #6B3545 #606B35 #356B5B
square
#40356B #6B3545 #606B35 #356B5B
split-complementary
#40356B #6B5B35 #456B35
monochromatic
#0F0C19 #282142 #40356B #584994 #7667B4

Accessibility & contrast

On white

10.83
#40356B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40356B
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40356B#FFFFFF#000000##FFFFFF
##40356B1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213E6D
Deuteranopia (green-blind)
#223C6A
Tritanopia (blue-blind)
#35404B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #40356b;
/* rgb */ color: rgb(64, 53, 107);
/* oklch */ color: oklch(36.9% 0.090 290.6);
Tailwind
colors: {
  custom: {
    50: '#776c96',
    500: '#40356b',
    950: '#000000',
  },
}
SCSS
$custom: #40356b;
$custom-light: #776c96;
$custom-dark: #000000;
JSON
{
  "hex": "#40356b",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 107
  },
  "hsl": {
    "h": 252.222,
    "s": 33.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36853,
    "c": 0.09046,
    "h": 290.6
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#40356B
secondary
#909C60
accent
#CA5EB4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40356B

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

Preview Lab → · Contrast checker → · Palette generator →

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