#400F66#400F66

#400F66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.139 H 304.5°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#400F66
RGBrgb(64, 15, 102)
HSLhsl(274, 74%, 23%)
HSVhsv(274, 85%, 40%)
CMYKcmyk(37.3%, 85.3%, 0%, 60%)
CIE-LABlab(17.42, 39.26, -40.31)
CIE-LCHlch(17.42, 56.27, 314.24°)
OKLaboklab(30.61% 0.079 -0.1149)
OKLCHoklch(30.61% 0.139 304.5)
XYZxyz(4.6829, 2.3910, 12.7826)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F66 #35660F
analogous
#140F66 #400F66 #660F60
triadic
#400F66 #66400F #0F6640
tetradic
#400F66 #66140F #35660F #0F6066
square
#400F66 #66140F #35660F #0F6066
split-complementary
#400F66 #60660F #0F6614
monochromatic
#11041B #1F0731 #400F66 #61179B #831FD1

Accessibility & contrast

On white

14.21
#400F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F66
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F66#FFFFFF#000000##FFFFFF
##400F661.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#39273B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #400f66;
/* rgb */ color: rgb(64, 15, 102);
/* oklch */ color: oklch(30.6% 0.139 304.5);
Tailwind
colors: {
  custom: {
    50: '#7a5592',
    500: '#400f66',
    950: '#000000',
  },
}
SCSS
$custom: #400f66;
$custom-light: #7a5592;
$custom-dark: #000000;
JSON
{
  "hex": "#400f66",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 102
  },
  "hsl": {
    "h": 273.793,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30605,
    "c": 0.13948,
    "h": 304.5
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#400F66
secondary
#629F32
accent
#F13788
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #400F66

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

Preview Lab → · Contrast checker → · Palette generator →

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