#400E68#400E68

#400E68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.143 H 303.7°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#400E68
RGBrgb(64, 14, 104)
HSLhsl(273, 76%, 23%)
HSVhsv(273, 87%, 41%)
CMYKcmyk(38.5%, 86.5%, 0%, 59.2%)
CIE-LABlab(17.48, 40.13, -41.53)
CIE-LCHlch(17.48, 57.75, 314.01°)
OKLaboklab(30.7% 0.0792 -0.1185)
OKLCHoklch(30.7% 0.143 303.7)
XYZxyz(4.7695, 2.4035, 13.3067)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E68 #36680E
analogous
#130E68 #400E68 #680E63
triadic
#400E68 #68400E #0E6840
tetradic
#400E68 #68130E #36680E #0E6368
square
#400E68 #68130E #36680E #0E6368
split-complementary
#400E68 #63680E #0E6813
monochromatic
#11041B #1F0732 #400E68 #61159E #821DD4

Accessibility & contrast

On white

14.18
#400E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#400E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E68
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E68#FFFFFF#000000##FFFFFF
##400E681.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#38273C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #400e68;
/* rgb */ color: rgb(64, 14, 104);
/* oklch */ color: oklch(30.7% 0.143 303.7);
Tailwind
colors: {
  custom: {
    50: '#7a5494',
    500: '#400e68',
    950: '#000000',
  },
}
SCSS
$custom: #400e68;
$custom-light: #7a5494;
$custom-dark: #000000;
JSON
{
  "hex": "#400e68",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 104
  },
  "hsl": {
    "h": 273.333,
    "s": 76.271,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30703,
    "c": 0.14253,
    "h": 303.7
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#400E68
secondary
#63A131
accent
#F33589
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #400E68

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

Preview Lab → · Contrast checker → · Palette generator →

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