#40355F#40355F

#40355F is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.1% C 0.072 H 294.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#40355F
RGBrgb(64, 53, 95)
HSLhsl(256, 28%, 29%)
HSVhsv(256, 44%, 37%)
CMYKcmyk(32.6%, 44.2%, 0%, 62.7%)
CIE-LABlab(25.14, 15.49, -23.32)
CIE-LCHlch(25.14, 28.00, 303.59°)
OKLaboklab(36.09% 0.0299 -0.0653)
OKLCHoklch(36.09% 0.072 294.6)
XYZxyz(5.4525, 4.4623, 11.3983)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40355F #545F35
analogous
#353F5F #40355F #55355F
triadic
#40355F #5F4035 #355F40
tetradic
#40355F #5F353F #545F35 #355F55
square
#40355F #5F353F #545F35 #355F55
split-complementary
#40355F #5F5535 #3F5F35
monochromatic
#0D0B14 #261F38 #40355F #5A4B86 #7765A9

Accessibility & contrast

On white

11.10
#40355F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#40355F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40355F
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40355F#FFFFFF#000000##FFFFFF
##40355F1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293C61
Deuteranopia (green-blind)
#2A3B5E
Tritanopia (blue-blind)
#393D45
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40355f;
/* rgb */ color: rgb(64, 53, 95);
/* oklch */ color: oklch(36.1% 0.072 294.6);
Tailwind
colors: {
  custom: {
    50: '#766c8c',
    500: '#40355f',
    950: '#000000',
  },
}
SCSS
$custom: #40355f;
$custom-light: #766c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#40355f",
  "rgb": {
    "r": 64,
    "g": 53,
    "b": 95
  },
  "hsl": {
    "h": 255.714,
    "s": 28.378,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36086,
    "c": 0.0718,
    "h": 294.6
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#40355F
secondary
#839060
accent
#C563AB
background
#F7F6F8
surface
#EDEBF0
border
#C8C6CB
text
#08070C
muted
#7B7A7D

Preview Lab

Preview with #40355F

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

Preview Lab → · Contrast checker → · Palette generator →

#40355F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva