#40115D#40115D

#40115D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.128 H 308.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#40115D
RGBrgb(64, 17, 93)
HSLhsl(277, 69%, 22%)
HSVhsv(277, 82%, 36%)
CMYKcmyk(31.2%, 81.7%, 0%, 63.5%)
CIE-LABlab(16.90, 36.22, -35.19)
CIE-LCHlch(16.90, 50.50, 315.83°)
OKLaboklab(29.99% 0.0797 -0.0999)
OKLCHoklch(29.99% 0.128 308.6)
XYZxyz(4.2902, 2.2813, 10.5681)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40115D #2E5D11
analogous
#1A115D #40115D #5D1154
triadic
#40115D #5D4011 #115D40
tetradic
#40115D #5D1A11 #2E5D11 #11545D
square
#40115D #5D1A11 #2E5D11 #11545D
split-complementary
#40115D #545D11 #115D1A
monochromatic
#12051A #1C0829 #40115D #641A91 #8724C4

Accessibility & contrast

On white

14.42
#40115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40115D
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40115D#FFFFFF#000000##FFFFFF
##40115D1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#3B2436
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40115d;
/* rgb */ color: rgb(64, 17, 93);
/* oklch */ color: oklch(30.0% 0.128 308.6);
Tailwind
colors: {
  custom: {
    50: '#78558b',
    500: '#40115d',
    950: '#000000',
  },
}
SCSS
$custom: #40115d;
$custom-light: #78558b;
$custom-dark: #000000;
JSON
{
  "hex": "#40115d",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 277.105,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29992,
    "c": 0.12779,
    "h": 308.6
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#40115D
secondary
#599634
accent
#EC3C7F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40115D

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

Preview Lab → · Contrast checker → · Palette generator →

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