#40115A#40115A

#40115A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.125 H 310.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#40115A
RGBrgb(64, 17, 90)
HSLhsl(279, 68%, 21%)
HSVhsv(279, 81%, 35%)
CMYKcmyk(28.9%, 81.1%, 0%, 64.7%)
CIE-LABlab(16.65, 35.49, -33.59)
CIE-LCHlch(16.65, 48.86, 316.57°)
OKLaboklab(29.74% 0.0803 -0.0952)
OKLCHoklch(29.74% 0.125 310.2)
XYZxyz(4.1599, 2.2292, 9.8820)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40115A #2B5A11
analogous
#1B115A #40115A #5A114F
triadic
#40115A #5A4011 #115A40
tetradic
#40115A #5A1B11 #2B5A11 #114F5A
square
#40115A #5A1B11 #2B5A11 #114F5A
split-complementary
#40115A #4F5A11 #115A1B
monochromatic
#12051A #1B0727 #40115A #651B8D #8924C1

Accessibility & contrast

On white

14.52
#40115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40115A
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40115A#FFFFFF#000000##FFFFFF
##40115A1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#012A58
Tritanopia (blue-blind)
#3C2235
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40115a;
/* rgb */ color: rgb(64, 17, 90);
/* oklch */ color: oklch(29.7% 0.125 310.2);
Tailwind
colors: {
  custom: {
    50: '#785589',
    500: '#40115a',
    950: '#000000',
  },
}
SCSS
$custom: #40115a;
$custom-light: #785589;
$custom-dark: #000000;
JSON
{
  "hex": "#40115a",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 278.63,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29735,
    "c": 0.12458,
    "h": 310.2
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#40115A
secondary
#569334
accent
#EB3D7B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #40115A

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

Preview Lab → · Contrast checker → · Palette generator →

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