#462AA4#462AA4

#462AA4 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.183 H 285.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#462AA4
RGBrgb(70, 42, 164)
HSLhsl(254, 59%, 40%)
HSVhsv(254, 74%, 64%)
CMYKcmyk(57.3%, 74.4%, 0%, 35.7%)
CIE-LABlab(28.48, 44.73, -61.19)
CIE-LCHlch(28.48, 75.80, 306.17°)
OKLaboklab(40.32% 0.0482 -0.1762)
OKLCHoklch(40.32% 0.183 285.3)
XYZxyz(10.0526, 5.6378, 35.6733)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462AA4 #88A42A
analogous
#2A4BA4 #462AA4 #832AA4
triadic
#462AA4 #A4462A #2AA446
tetradic
#462AA4 #A42A4B #88A42A #2AA483
square
#462AA4 #A42A4B #88A42A #2AA483
split-complementary
#462AA4 #A4832A #4BA42A
monochromatic
#1C1143 #311E73 #462AA4 #5F3ECD #876EDA

Accessibility & contrast

On white

9.87
#462AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#462AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462AA4
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462AA4#FFFFFF#000000##FFFFFF
##462AA41.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#174C65
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #462aa4;
/* rgb */ color: rgb(70, 42, 164);
/* oklch */ color: oklch(40.3% 0.183 285.3);
Tailwind
colors: {
  custom: {
    50: '#8467c0',
    500: '#462aa4',
    950: '#000000',
  },
}
SCSS
$custom: #462aa4;
$custom-light: #8467c0;
$custom-dark: #000000;
JSON
{
  "hex": "#462aa4",
  "rgb": {
    "r": 70,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 253.77,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40322,
    "c": 0.18264,
    "h": 285.3
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#462AA4
secondary
#ADC169
accent
#E245BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #462AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#462AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva