#40115B#40115B

#40115B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.126 H 309.6°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#40115B
RGBrgb(64, 17, 91)
HSLhsl(278, 69%, 21%)
HSVhsv(278, 81%, 36%)
CMYKcmyk(29.7%, 81.3%, 0%, 64.3%)
CIE-LABlab(16.73, 35.73, -34.13)
CIE-LCHlch(16.73, 49.41, 316.32°)
OKLaboklab(29.82% 0.0801 -0.0968)
OKLCHoklch(29.82% 0.126 309.6)
XYZxyz(4.2028, 2.2463, 10.1077)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40115B #2C5B11
analogous
#1B115B #40115B #5B1151
triadic
#40115B #5B4011 #115B40
tetradic
#40115B #5B1B11 #2C5B11 #11515B
square
#40115B #5B1B11 #2C5B11 #11515B
split-complementary
#40115B #515B11 #115B1B
monochromatic
#12051A #1C0727 #40115B #641B8F #8924C2

Accessibility & contrast

On white

14.49
#40115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40115B
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40115B#FFFFFF#000000##FFFFFF
##40115B1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#3C2335
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40115b;
/* rgb */ color: rgb(64, 17, 91);
/* oklch */ color: oklch(29.8% 0.126 309.6);
Tailwind
colors: {
  custom: {
    50: '#78558a',
    500: '#40115b',
    950: '#000000',
  },
}
SCSS
$custom: #40115b;
$custom-light: #78558a;
$custom-dark: #000000;
JSON
{
  "hex": "#40115b",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 278.108,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2982,
    "c": 0.12564,
    "h": 309.6
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#40115B
secondary
#579434
accent
#EB3C7C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40115B

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

Preview Lab → · Contrast checker → · Palette generator →

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