#402463#402463

#402463 is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.1% C 0.108 H 301.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#402463
RGBrgb(64, 36, 99)
HSLhsl(267, 47%, 26%)
HSVhsv(267, 64%, 39%)
CMYKcmyk(35.4%, 63.6%, 0%, 61.2%)
CIE-LABlab(21.03, 27.70, -32.49)
CIE-LCHlch(21.03, 42.70, 310.45°)
OKLaboklab(33.1% 0.0558 -0.0921)
OKLCHoklch(33.1% 0.108 301.2)
XYZxyz(4.9968, 3.2526, 12.1665)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402463 #476324
analogous
#242863 #402463 #602463
triadic
#402463 #634024 #246340
tetradic
#402463 #632428 #476324 #246360
square
#402463 #632428 #476324 #246360
split-complementary
#402463 #636024 #286324
monochromatic
#0F0816 #231436 #402463 #5D3490 #7A46BC

Accessibility & contrast

On white

12.72
#402463 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#402463 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402463
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402463#FFFFFF#000000##FFFFFF
##4024631.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033265
Deuteranopia (green-blind)
#113262
Tritanopia (blue-blind)
#39313F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402463;
/* rgb */ color: rgb(64, 36, 99);
/* oklch */ color: oklch(33.1% 0.108 301.2);
Tailwind
colors: {
  custom: {
    50: '#786090',
    500: '#402463',
    950: '#000000',
  },
}
SCSS
$custom: #402463;
$custom-light: #786090;
$custom-dark: #000000;
JSON
{
  "hex": "#402463",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 99
  },
  "hsl": {
    "h": 266.667,
    "s": 46.667,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33103,
    "c": 0.10766,
    "h": 301.2
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#402463
secondary
#76964C
accent
#D6519B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #402463

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

Preview Lab → · Contrast checker → · Palette generator →

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