#400EB7#400EB7

#400EB7 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 39.2% C 0.225 H 281.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#400EB7
RGBrgb(64, 14, 183)
HSLhsl(258, 86%, 39%)
HSVhsv(258, 92%, 72%)
CMYKcmyk(65%, 92.3%, 0%, 28.2%)
CIE-LABlab(26.22, 60.31, -76.35)
CIE-LCHlch(26.22, 97.29, 308.31°)
OKLaboklab(39.23% 0.0461 -0.2201)
OKLCHoklch(39.23% 0.225 281.8)
XYZxyz(10.8160, 4.8221, 45.1514)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400EB7 #85B70E
analogous
#0E31B7 #400EB7 #940EB7
triadic
#400EB7 #B7400E #0EB740
tetradic
#400EB7 #B70E31 #85B70E #0EB794
square
#400EB7 #B70E31 #85B70E #0EB794
split-complementary
#400EB7 #B7940E #31B70E
monochromatic
#180545 #2C0A7E #400EB7 #5515ED #7E4EF1

Accessibility & contrast

On white

10.69
#400EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#400EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400EB7
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400EB7#FFFFFF#000000##FFFFFF
##400EB71.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043BB
Deuteranopia (green-blind)
#0038B4
Tritanopia (blue-blind)
#004B6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #400eb7;
/* rgb */ color: rgb(64, 14, 183);
/* oklch */ color: oklch(39.2% 0.225 281.8);
Tailwind
colors: {
  custom: {
    50: '#875bce',
    500: '#400eb7',
    950: '#000000',
  },
}
SCSS
$custom: #400eb7;
$custom-light: #875bce;
$custom-dark: #000000;
JSON
{
  "hex": "#400eb7",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 183
  },
  "hsl": {
    "h": 257.751,
    "s": 85.787,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39228,
    "c": 0.22491,
    "h": 281.8
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#400EB7
secondary
#ACD34E
accent
#FC2CBE
background
#F9F5FC
surface
#F1E9F9
border
#CBC5D2
text
#0D0414
muted
#7E7982

Preview Lab

Preview with #400EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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