#400E63#400E63

#400E63 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.137 H 306.0°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#400E63
RGBrgb(64, 14, 99)
HSLhsl(275, 75%, 22%)
HSVhsv(275, 86%, 39%)
CMYKcmyk(35.4%, 85.9%, 0%, 61.2%)
CIE-LABlab(17.01, 38.89, -38.99)
CIE-LCHlch(17.01, 55.07, 314.93°)
OKLaboklab(30.24% 0.0808 -0.1111)
OKLCHoklch(30.24% 0.137 306)
XYZxyz(4.5230, 2.3050, 12.0086)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E63 #31630E
analogous
#160E63 #400E63 #630E5C
triadic
#400E63 #63400E #0E6340
tetradic
#400E63 #63160E #31630E #0E5C63
square
#400E63 #63160E #31630E #0E5C63
split-complementary
#400E63 #5C630E #0E6316
monochromatic
#11041B #1D062D #400E63 #631699 #851DCE

Accessibility & contrast

On white

14.37
#400E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#400E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E63
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E63#FFFFFF#000000##FFFFFF
##400E631.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#3A2539
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #400e63;
/* rgb */ color: rgb(64, 14, 99);
/* oklch */ color: oklch(30.2% 0.137 306.0);
Tailwind
colors: {
  custom: {
    50: '#795490',
    500: '#400e63',
    950: '#000000',
  },
}
SCSS
$custom: #400e63;
$custom-light: #795490;
$custom-dark: #000000;
JSON
{
  "hex": "#400e63",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 99
  },
  "hsl": {
    "h": 275.294,
    "s": 75.221,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30237,
    "c": 0.13733,
    "h": 306
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#400E63
secondary
#5D9C30
accent
#F23683
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #400E63

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

Preview Lab → · Contrast checker → · Palette generator →

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