#40115F#40115F

#40115F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.130 H 307.5°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#40115F
RGBrgb(64, 17, 95)
HSLhsl(276, 70%, 22%)
HSVhsv(276, 82%, 37%)
CMYKcmyk(32.6%, 82.1%, 0%, 62.7%)
CIE-LABlab(17.07, 36.71, -36.24)
CIE-LCHlch(17.07, 51.59, 315.37°)
OKLaboklab(30.17% 0.0792 -0.103)
OKLCHoklch(30.17% 0.13 307.5)
XYZxyz(4.3799, 2.3172, 11.0408)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40115F #305F11
analogous
#19115F #40115F #5F1157
triadic
#40115F #5F4011 #115F40
tetradic
#40115F #5F1911 #305F11 #11575F
square
#40115F #5F1911 #305F11 #11575F
split-complementary
#40115F #575F11 #115F19
monochromatic
#11051A #1D082B #40115F #631A93 #8624C7

Accessibility & contrast

On white

14.35
#40115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40115F
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40115F#FFFFFF#000000##FFFFFF
##40115F1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#3B2538
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40115f;
/* rgb */ color: rgb(64, 17, 95);
/* oklch */ color: oklch(30.2% 0.130 307.5);
Tailwind
colors: {
  custom: {
    50: '#79558d',
    500: '#40115f',
    950: '#000000',
  },
}
SCSS
$custom: #40115f;
$custom-light: #79558d;
$custom-dark: #000000;
JSON
{
  "hex": "#40115f",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 276.154,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30167,
    "c": 0.12993,
    "h": 307.5
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#40115F
secondary
#5C9834
accent
#EC3B82
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40115F

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

Preview Lab → · Contrast checker → · Palette generator →

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