#40356D#40356D

#40356D is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.0% C 0.094 H 290.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#40356D
RGBrgb(64, 53, 109)
HSLhsl(252, 35%, 32%)
HSVhsv(252, 51%, 43%)
CMYKcmyk(41.3%, 51.4%, 0%, 57.3%)
CIE-LABlab(25.98, 19.75, -31.04)
CIE-LCHlch(25.98, 36.79, 302.46°)
OKLaboklab(36.99% 0.0321 -0.0878)
OKLCHoklch(36.99% 0.094 290.1)
XYZxyz(6.1470, 4.7401, 15.0561)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40356D #626D35
analogous
#35466D #40356D #5C356D
triadic
#40356D #6D4035 #356D40
tetradic
#40356D #6D3546 #626D35 #356D5C
square
#40356D #6D3546 #626D35 #356D5C
split-complementary
#40356D #6D5C35 #466D35
monochromatic
#100D1B #282144 #40356D #584996 #7767B5

Accessibility & contrast

On white

10.78
#40356D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#40356D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40356D
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40356D#FFFFFF#000000##FFFFFF
##40356D1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3F6F
Deuteranopia (green-blind)
#203C6C
Tritanopia (blue-blind)
#34404C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #40356d;
/* rgb */ color: rgb(64, 53, 109);
/* oklch */ color: oklch(37.0% 0.094 290.1);
Tailwind
colors: {
  custom: {
    50: '#776c97',
    500: '#40356d',
    950: '#000000',
  },
}
SCSS
$custom: #40356d;
$custom-light: #776c97;
$custom-dark: #000000;
JSON
{
  "hex": "#40356d",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 109
  },
  "hsl": {
    "h": 251.786,
    "s": 34.568,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36989,
    "c": 0.09352,
    "h": 290.1
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#40356D
secondary
#929E60
accent
#CB5DB5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #40356D

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

Preview Lab → · Contrast checker → · Palette generator →

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