#4A2EBA#4A2EBA

#4A2EBA is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.3% C 0.204 H 283.0°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4A2EBA
RGBrgb(74, 46, 186)
HSLhsl(252, 60%, 45%)
HSVhsv(252, 75%, 73%)
CMYKcmyk(60.2%, 75.3%, 0%, 27.1%)
CIE-LABlab(31.70, 49.74, -69.03)
CIE-LCHlch(31.70, 85.09, 305.78°)
OKLaboklab(43.33% 0.0458 -0.199)
OKLCHoklch(43.33% 0.204 283)
XYZxyz(12.6612, 6.9541, 47.1200)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EBA #9EBA2E
analogous
#2E58BA #4A2EBA #902EBA
triadic
#4A2EBA #BA4A2E #2EBA4A
tetradic
#4A2EBA #BA2E58 #9EBA2E #2EBA90
square
#4A2EBA #BA2E58 #9EBA2E #2EBA90
split-complementary
#4A2EBA #BA902E #58BA2E
monochromatic
#231658 #362289 #4A2EBA #6B51D4 #9582E0

Accessibility & contrast

On white

8.78
#4A2EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4A2EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EBA
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EBA#FFFFFF#000000##FFFFFF
##4A2EBA1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a2eba;
/* rgb */ color: rgb(74, 46, 186);
/* oklch */ color: oklch(43.3% 0.204 283.0);
Tailwind
colors: {
  custom: {
    50: '#8a6ad0',
    500: '#4a2eba',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eba;
$custom-light: #8a6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eba",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 252,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43325,
    "c": 0.20421,
    "h": 283
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#4A2EBA
secondary
#B9C97B
accent
#E344C4
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2EBA

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

Preview Lab → · Contrast checker → · Palette generator →

#4A2EBA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva