#400E58#400E58

#400E58 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.3% C 0.126 H 311.7°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#400E58
RGBrgb(64, 14, 88)
HSLhsl(281, 73%, 20%)
HSVhsv(281, 84%, 35%)
CMYKcmyk(27.3%, 84.1%, 0%, 65.5%)
CIE-LABlab(16.05, 36.25, -33.22)
CIE-LCHlch(16.05, 49.17, 317.50°)
OKLaboklab(29.26% 0.0837 -0.0941)
OKLCHoklch(29.26% 0.126 311.7)
XYZxyz(4.0325, 2.1088, 9.4252)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E58 #26580E
analogous
#1B0E58 #400E58 #580E4B
triadic
#400E58 #58400E #0E5840
tetradic
#400E58 #581B0E #26580E #0E4B58
square
#400E58 #581B0E #26580E #0E4B58
split-complementary
#400E58 #4B580E #0E581B
monochromatic
#13041A #1A0623 #400E58 #66168D #8D1FC2

Accessibility & contrast

On white

14.77
#400E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#400E58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E58
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E58#FFFFFF#000000##FFFFFF
##400E581.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400e58;
/* rgb */ color: rgb(64, 14, 88);
/* oklch */ color: oklch(29.3% 0.126 311.7);
Tailwind
colors: {
  custom: {
    50: '#785388',
    500: '#400e58',
    950: '#000000',
  },
}
SCSS
$custom: #400e58;
$custom-light: #785388;
$custom-dark: #000000;
JSON
{
  "hex": "#400e58",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 88
  },
  "hsl": {
    "h": 280.541,
    "s": 72.549,
    "l": 20
  },
  "oklch": {
    "l": 0.29261,
    "c": 0.12596,
    "h": 311.7
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#400E58
secondary
#509230
accent
#EF3974
background
#F7F5F8
surface
#EEE8F0
border
#C9C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400E58

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

Preview Lab → · Contrast checker → · Palette generator →

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