#462FAB#462FAB

#462FAB is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.186 H 283.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#462FAB
RGBrgb(70, 47, 171)
HSLhsl(251, 57%, 43%)
HSVhsv(251, 73%, 67%)
CMYKcmyk(59.1%, 72.5%, 0%, 32.9%)
CIE-LABlab(30.10, 44.17, -62.75)
CIE-LCHlch(30.10, 76.74, 305.14°)
OKLaboklab(41.67% 0.0427 -0.1808)
OKLCHoklch(41.67% 0.186 283.3)
XYZxyz(10.8907, 6.2747, 39.1574)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#462FAB #94AB2F
analogous
#2F56AB #462FAB #842FAB
triadic
#462FAB #AB462F #2FAB46
tetradic
#462FAB #AB2F56 #94AB2F #2FAB84
square
#462FAB #AB2F56 #94AB2F #2FAB84
split-complementary
#462FAB #AB842F #56AB2F
monochromatic
#1F154B #32227B #462FAB #624ACD #8C7ADA

Accessibility & contrast

On white

9.31
#462FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#462FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #462FAB
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##462FAB#FFFFFF#000000##FFFFFF
##462FAB1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#06516A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #462fab;
/* rgb */ color: rgb(70, 47, 171);
/* oklch */ color: oklch(41.7% 0.186 283.3);
Tailwind
colors: {
  custom: {
    50: '#856ac5',
    500: '#462fab',
    950: '#000000',
  },
}
SCSS
$custom: #462fab;
$custom-light: #856ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#462fab",
  "rgb": {
    "r": 70,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 251.129,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41667,
    "c": 0.18575,
    "h": 283.3
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#462FAB
secondary
#B4C373
accent
#E048C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #462FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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