#40145D#40145D

#40145D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.124 H 308.1°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#40145D
RGBrgb(64, 20, 93)
HSLhsl(276, 65%, 22%)
HSVhsv(276, 78%, 36%)
CMYKcmyk(31.2%, 78.5%, 0%, 63.5%)
CIE-LABlab(17.37, 34.87, -34.43)
CIE-LCHlch(17.37, 49.00, 315.37°)
OKLaboklab(30.33% 0.0765 -0.0977)
OKLCHoklch(30.33% 0.124 308.1)
XYZxyz(4.3399, 2.3807, 10.5847)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40145D #315D14
analogous
#1B145D #40145D #5D1456
triadic
#40145D #5D4014 #145D40
tetradic
#40145D #5D1B14 #315D14 #14565D
square
#40145D #5D1B14 #315D14 #14565D
split-complementary
#40145D #565D14 #145D1B
monochromatic
#110519 #1D092B #40145D #631F8F #852AC2

Accessibility & contrast

On white

14.23
#40145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#40145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40145D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40145D#FFFFFF#000000##FFFFFF
##40145D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#3B2537
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #40145d;
/* rgb */ color: rgb(64, 20, 93);
/* oklch */ color: oklch(30.3% 0.124 308.1);
Tailwind
colors: {
  custom: {
    50: '#78568b',
    500: '#40145d',
    950: '#000000',
  },
}
SCSS
$custom: #40145d;
$custom-light: #78568b;
$custom-dark: #000000;
JSON
{
  "hex": "#40145d",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 276.164,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30325,
    "c": 0.1241,
    "h": 308.1
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#40145D
secondary
#5D9538
accent
#E84083
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40145D

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

Preview Lab → · Contrast checker → · Palette generator →

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