#40115C#40115C

#40115C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.127 H 309.1°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#40115C
RGBrgb(64, 17, 92)
HSLhsl(278, 69%, 21%)
HSVhsv(278, 82%, 36%)
CMYKcmyk(30.4%, 81.5%, 0%, 63.9%)
CIE-LABlab(16.81, 35.97, -34.66)
CIE-LCHlch(16.81, 49.95, 316.07°)
OKLaboklab(29.91% 0.0799 -0.0984)
OKLCHoklch(29.91% 0.127 309.1)
XYZxyz(4.2462, 2.2637, 10.3364)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40115C #2D5C11
analogous
#1B115C #40115C #5C1153
triadic
#40115C #5C4011 #115C40
tetradic
#40115C #5C1B11 #2D5C11 #11535C
square
#40115C #5C1B11 #2D5C11 #11535C
split-complementary
#40115C #535C11 #115C1B
monochromatic
#12051A #1C0728 #40115C #641B90 #8824C3

Accessibility & contrast

On white

14.45
#40115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#40115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40115C
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40115C#FFFFFF#000000##FFFFFF
##40115C1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#3C2336
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40115c;
/* rgb */ color: rgb(64, 17, 92);
/* oklch */ color: oklch(29.9% 0.127 309.1);
Tailwind
colors: {
  custom: {
    50: '#78558b',
    500: '#40115c',
    950: '#000000',
  },
}
SCSS
$custom: #40115c;
$custom-light: #78558b;
$custom-dark: #000000;
JSON
{
  "hex": "#40115c",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 277.6,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29906,
    "c": 0.12672,
    "h": 309.1
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#40115C
secondary
#589534
accent
#EC3C7E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40115C

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

Preview Lab → · Contrast checker → · Palette generator →

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