#400E62#400E62

#400E62 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.136 H 306.5°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#400E62
RGBrgb(64, 14, 98)
HSLhsl(276, 75%, 22%)
HSVhsv(276, 86%, 38%)
CMYKcmyk(34.7%, 85.7%, 0%, 61.6%)
CIE-LABlab(16.92, 38.65, -38.48)
CIE-LCHlch(16.92, 54.54, 315.13°)
OKLaboklab(30.15% 0.0811 -0.1096)
OKLCHoklch(30.15% 0.136 306.5)
XYZxyz(4.4755, 2.2860, 11.7584)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E62 #30620E
analogous
#160E62 #400E62 #620E5A
triadic
#400E62 #62400E #0E6240
tetradic
#400E62 #62160E #30620E #0E5A62
square
#400E62 #62160E #30620E #0E5A62
split-complementary
#400E62 #5A620E #0E6216
monochromatic
#11041B #1D062C #400E62 #631698 #861DCD

Accessibility & contrast

On white

14.41
#400E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E62
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E62#FFFFFF#000000##FFFFFF
##400E621.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400e62;
/* rgb */ color: rgb(64, 14, 98);
/* oklch */ color: oklch(30.1% 0.136 306.5);
Tailwind
colors: {
  custom: {
    50: '#79548f',
    500: '#400e62',
    950: '#000000',
  },
}
SCSS
$custom: #400e62;
$custom-light: #79548f;
$custom-dark: #000000;
JSON
{
  "hex": "#400e62",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 98
  },
  "hsl": {
    "h": 275.714,
    "s": 75,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30145,
    "c": 0.13629,
    "h": 306.5
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#400E62
secondary
#5C9B30
accent
#F23682
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400E62

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

Preview Lab → · Contrast checker → · Palette generator →

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