#400F58#400F58

#400F58 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.4% C 0.125 H 311.5°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#400F58
RGBrgb(64, 15, 88)
HSLhsl(280, 71%, 20%)
HSVhsv(280, 83%, 35%)
CMYKcmyk(27.3%, 83%, 0%, 65.5%)
CIE-LABlab(16.19, 35.85, -32.99)
CIE-LCHlch(16.19, 48.72, 317.38°)
OKLaboklab(29.36% 0.0828 -0.0934)
OKLCHoklch(29.36% 0.125 311.5)
XYZxyz(4.0463, 2.1363, 9.4298)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F58 #27580F
analogous
#1B0F58 #400F58 #580F4B
triadic
#400F58 #58400F #0F5840
tetradic
#400F58 #581B0F #27580F #0F4B58
square
#400F58 #581B0F #27580F #0F4B58
split-complementary
#400F58 #4B580F #0F581B
monochromatic
#13041A #1A0624 #400F58 #66188C #8C21C1

Accessibility & contrast

On white

14.71
#400F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F58
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F58#FFFFFF#000000##FFFFFF
##400F581.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#022956
Tritanopia (blue-blind)
#3D2133
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #400f58;
/* rgb */ color: rgb(64, 15, 88);
/* oklch */ color: oklch(29.4% 0.125 311.5);
Tailwind
colors: {
  custom: {
    50: '#785488',
    500: '#400f58',
    950: '#000000',
  },
}
SCSS
$custom: #400f58;
$custom-light: #785488;
$custom-dark: #000000;
JSON
{
  "hex": "#400f58",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 88
  },
  "hsl": {
    "h": 280.274,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29359,
    "c": 0.12483,
    "h": 311.5
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#400F58
secondary
#519231
accent
#EE3A75
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400F58

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

Preview Lab → · Contrast checker → · Palette generator →

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