#402264#402264

#402264 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.9% C 0.112 H 301.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#402264
RGBrgb(64, 34, 100)
HSLhsl(267, 49%, 26%)
HSVhsv(267, 66%, 39%)
CMYKcmyk(36%, 66%, 0%, 60.8%)
CIE-LABlab(20.65, 29.20, -33.75)
CIE-LCHlch(20.65, 44.63, 310.86°)
OKLaboklab(32.85% 0.0585 -0.0958)
OKLCHoklch(32.85% 0.112 301.4)
XYZxyz(4.9861, 3.1541, 12.4002)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402264 #466422
analogous
#222564 #402264 #612264
triadic
#402264 #644022 #226440
tetradic
#402264 #642225 #466422 #226461
square
#402264 #642225 #466422 #226461
split-complementary
#402264 #646122 #256422
monochromatic
#0F0817 #231236 #402264 #5D3292 #7B42BF

Accessibility & contrast

On white

12.88
#402264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#402264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402264
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402264#FFFFFF#000000##FFFFFF
##4022641.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#0C3163
Tritanopia (blue-blind)
#39303F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402264;
/* rgb */ color: rgb(64, 34, 100);
/* oklch */ color: oklch(32.9% 0.112 301.4);
Tailwind
colors: {
  custom: {
    50: '#785f91',
    500: '#402264',
    950: '#000000',
  },
}
SCSS
$custom: #402264;
$custom-light: #785f91;
$custom-dark: #000000;
JSON
{
  "hex": "#402264",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 100
  },
  "hsl": {
    "h": 267.273,
    "s": 49.254,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32852,
    "c": 0.11221,
    "h": 301.4
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#402264
secondary
#74984A
accent
#D94F9A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040D
muted
#7B797D

Preview Lab

Preview with #402264

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

Preview Lab → · Contrast checker → · Palette generator →

#402264 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva