#400F67#400F67

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

Color values

HEX#400F67
RGBrgb(64, 15, 103)
HSLhsl(273, 75%, 23%)
HSVhsv(273, 85%, 40%)
CMYKcmyk(37.9%, 85.4%, 0%, 59.6%)
CIE-LABlab(17.51, 39.51, -40.82)
CIE-LCHlch(17.51, 56.81, 314.06°)
OKLaboklab(30.7% 0.0787 -0.1164)
OKLCHoklch(30.7% 0.141 304)
XYZxyz(4.7328, 2.4109, 13.0454)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F67 #36670F
analogous
#140F67 #400F67 #670F62
triadic
#400F67 #67400F #0F6740
tetradic
#400F67 #67140F #36670F #0F6267
square
#400F67 #67140F #36670F #0F6267
split-complementary
#400F67 #62670F #0F6714
monochromatic
#11041B #1F0732 #400F67 #61179C #821FD2

Accessibility & contrast

On white

14.17
#400F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F67
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F67#FFFFFF#000000##FFFFFF
##400F671.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400f67;
/* rgb */ color: rgb(64, 15, 103);
/* oklch */ color: oklch(30.7% 0.141 304.0);
Tailwind
colors: {
  custom: {
    50: '#7a5593',
    500: '#400f67',
    950: '#000000',
  },
}
SCSS
$custom: #400f67;
$custom-light: #7a5593;
$custom-dark: #000000;
JSON
{
  "hex": "#400f67",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 103
  },
  "hsl": {
    "h": 273.409,
    "s": 74.576,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30698,
    "c": 0.14053,
    "h": 304
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#400F67
secondary
#63A032
accent
#F13789
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #400F67

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

Preview Lab → · Contrast checker → · Palette generator →

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