#40145F#40145F

#40145F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.126 H 307.1°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#40145F
RGBrgb(64, 20, 95)
HSLhsl(275, 65%, 23%)
HSVhsv(275, 79%, 37%)
CMYKcmyk(32.6%, 78.9%, 0%, 62.7%)
CIE-LABlab(17.54, 35.38, -35.49)
CIE-LCHlch(17.54, 50.11, 314.91°)
OKLaboklab(30.5% 0.0761 -0.1008)
OKLCHoklch(30.5% 0.126 307.1)
XYZxyz(4.4296, 2.4166, 11.0573)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40145F #335F14
analogous
#1B145F #40145F #5F1458
triadic
#40145F #5F4014 #145F40
tetradic
#40145F #5F1B14 #335F14 #14585F
square
#40145F #5F1B14 #335F14 #14585F
split-complementary
#40145F #585F14 #145F1B
monochromatic
#110519 #1E092C #40145F #621F92 #8429C4

Accessibility & contrast

On white

14.16
#40145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40145F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40145F#FFFFFF#000000##FFFFFF
##40145F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#3B2638
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #40145f;
/* rgb */ color: rgb(64, 20, 95);
/* oklch */ color: oklch(30.5% 0.126 307.1);
Tailwind
colors: {
  custom: {
    50: '#78568d',
    500: '#40145f',
    950: '#000000',
  },
}
SCSS
$custom: #40145f;
$custom-light: #78568d;
$custom-dark: #000000;
JSON
{
  "hex": "#40145f",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 275.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30495,
    "c": 0.12633,
    "h": 307.1
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#40145F
secondary
#5F9738
accent
#E84085
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40145F

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

Preview Lab → · Contrast checker → · Palette generator →

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