#40155C#40155C

#40155C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.122 H 308.4°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#40155C
RGBrgb(64, 21, 92)
HSLhsl(276, 63%, 22%)
HSVhsv(276, 77%, 36%)
CMYKcmyk(30.4%, 77.2%, 0%, 63.9%)
CIE-LABlab(17.46, 34.15, -33.62)
CIE-LCHlch(17.46, 47.92, 315.45°)
OKLaboklab(30.36% 0.0756 -0.0953)
OKLCHoklch(30.36% 0.122 308.4)
XYZxyz(4.3139, 2.3991, 10.3590)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40155C #315C15
analogous
#1D155C #40155C #5C1555
triadic
#40155C #5C4015 #155C40
tetradic
#40155C #5C1D15 #315C15 #15555C
square
#40155C #5C1D15 #315C15 #15555C
split-complementary
#40155C #555C15 #155C1D
monochromatic
#110619 #1D0A2A #40155C #63208E #852CC0

Accessibility & contrast

On white

14.19
#40155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#40155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40155C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40155C#FFFFFF#000000##FFFFFF
##40155C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#032B5A
Tritanopia (blue-blind)
#3C2537
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #40155c;
/* rgb */ color: rgb(64, 21, 92);
/* oklch */ color: oklch(30.4% 0.122 308.4);
Tailwind
colors: {
  custom: {
    50: '#78578b',
    500: '#40155c',
    950: '#000000',
  },
}
SCSS
$custom: #40155c;
$custom-light: #78578b;
$custom-dark: #000000;
JSON
{
  "hex": "#40155c",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 276.338,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3036,
    "c": 0.12167,
    "h": 308.4
  },
  "luminance": 0.02399
}

Semantic roles & 50–950 ramp

primary
#40155C
secondary
#5D9339
accent
#E64283
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40155C

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

Preview Lab → · Contrast checker → · Palette generator →

#40155C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva