#40105D#40105D

#40105D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.129 H 308.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#40105D
RGBrgb(64, 16, 93)
HSLhsl(277, 71%, 21%)
HSVhsv(277, 83%, 36%)
CMYKcmyk(31.2%, 82.8%, 0%, 63.5%)
CIE-LABlab(16.75, 36.64, -35.43)
CIE-LCHlch(16.75, 50.97, 315.96°)
OKLaboklab(29.89% 0.0806 -0.1006)
OKLCHoklch(29.89% 0.129 308.7)
XYZxyz(4.2750, 2.2510, 10.5631)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40105D #2D5D10
analogous
#1A105D #40105D #5D1054
triadic
#40105D #5D4010 #105D40
tetradic
#40105D #5D1A10 #2D5D10 #10545D
square
#40105D #5D1A10 #2D5D10 #10545D
split-complementary
#40105D #545D10 #105D1A
monochromatic
#12041A #1C0729 #40105D #641991 #8822C5

Accessibility & contrast

On white

14.48
#40105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#40105D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40105D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40105D#FFFFFF#000000##FFFFFF
##40105D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#3B2336
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40105d;
/* rgb */ color: rgb(64, 16, 93);
/* oklch */ color: oklch(29.9% 0.129 308.7);
Tailwind
colors: {
  custom: {
    50: '#79548b',
    500: '#40105d',
    950: '#000000',
  },
}
SCSS
$custom: #40105d;
$custom-light: #79548b;
$custom-dark: #000000;
JSON
{
  "hex": "#40105d",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 277.403,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2989,
    "c": 0.12894,
    "h": 308.7
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#40105D
secondary
#589633
accent
#ED3A7E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40105D

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

Preview Lab → · Contrast checker → · Palette generator →

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