#400F68#400F68

#400F68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.142 H 303.6°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#400F68
RGBrgb(64, 15, 104)
HSLhsl(273, 75%, 23%)
HSVhsv(273, 86%, 41%)
CMYKcmyk(38.5%, 85.6%, 0%, 59.2%)
CIE-LABlab(17.60, 39.76, -41.32)
CIE-LCHlch(17.60, 57.34, 313.89°)
OKLaboklab(30.79% 0.0784 -0.1179)
OKLCHoklch(30.79% 0.142 303.6)
XYZxyz(4.7833, 2.4311, 13.3113)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F68 #37680F
analogous
#140F68 #400F68 #680F63
triadic
#400F68 #68400F #0F6840
tetradic
#400F68 #68140F #37680F #0F6368
square
#400F68 #68140F #37680F #0F6368
split-complementary
#400F68 #63680F #0F6814
monochromatic
#10041B #1F0733 #400F68 #61179D #821ED3

Accessibility & contrast

On white

14.13
#400F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#400F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F68
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F68#FFFFFF#000000##FFFFFF
##400F681.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400f68;
/* rgb */ color: rgb(64, 15, 104);
/* oklch */ color: oklch(30.8% 0.142 303.6);
Tailwind
colors: {
  custom: {
    50: '#7a5594',
    500: '#400f68',
    950: '#000000',
  },
}
SCSS
$custom: #400f68;
$custom-light: #7a5594;
$custom-dark: #000000;
JSON
{
  "hex": "#400f68",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 273.034,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30791,
    "c": 0.14158,
    "h": 303.6
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#400F68
secondary
#64A132
accent
#F1368A
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #400F68

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

Preview Lab → · Contrast checker → · Palette generator →

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