#400F59#400F59

#400F59 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.126 H 311.0°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#400F59
RGBrgb(64, 15, 89)
HSLhsl(280, 71%, 20%)
HSVhsv(280, 83%, 35%)
CMYKcmyk(28.1%, 83.1%, 0%, 65.1%)
CIE-LABlab(16.27, 36.09, -33.53)
CIE-LCHlch(16.27, 49.26, 317.10°)
OKLaboklab(29.44% 0.0826 -0.095)
OKLCHoklch(29.44% 0.126 311)
XYZxyz(4.0880, 2.1530, 9.6495)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F59 #28590F
analogous
#1B0F59 #400F59 #590F4D
triadic
#400F59 #59400F #0F5940
tetradic
#400F59 #591B0F #28590F #0F4D59
square
#400F59 #591B0F #28590F #0F4D59
split-complementary
#400F59 #4D590F #0F591B
monochromatic
#13041A #1A0625 #400F59 #66188D #8B21C2

Accessibility & contrast

On white

14.68
#400F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#400F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F59
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F59#FFFFFF#000000##FFFFFF
##400F591.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#012957
Tritanopia (blue-blind)
#3D2134
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400f59;
/* rgb */ color: rgb(64, 15, 89);
/* oklch */ color: oklch(29.4% 0.126 311.0);
Tailwind
colors: {
  custom: {
    50: '#785488',
    500: '#400f59',
    950: '#000000',
  },
}
SCSS
$custom: #400f59;
$custom-light: #785488;
$custom-dark: #000000;
JSON
{
  "hex": "#400f59",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 89
  },
  "hsl": {
    "h": 279.73,
    "s": 71.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29444,
    "c": 0.12587,
    "h": 311
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#400F59
secondary
#529331
accent
#EE3A77
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400F59

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

Preview Lab → · Contrast checker → · Palette generator →

#400F59 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva