#4A2EB8#4A2EB8

#4A2EB8 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.1% C 0.202 H 283.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4A2EB8
RGBrgb(74, 46, 184)
HSLhsl(252, 60%, 45%)
HSVhsv(252, 75%, 72%)
CMYKcmyk(59.8%, 75%, 0%, 27.8%)
CIE-LABlab(31.51, 49.15, -68.17)
CIE-LCHlch(31.51, 84.04, 305.79°)
OKLaboklab(43.13% 0.0463 -0.1965)
OKLCHoklch(43.13% 0.202 283.3)
XYZxyz(12.4501, 6.8697, 46.0080)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EB8 #9CB82E
analogous
#2E57B8 #4A2EB8 #8F2EB8
triadic
#4A2EB8 #B84A2E #2EB84A
tetradic
#4A2EB8 #B82E57 #9CB82E #2EB88F
square
#4A2EB8 #B82E57 #9CB82E #2EB88F
split-complementary
#4A2EB8 #B88F2E #57B82E
monochromatic
#231656 #362287 #4A2EB8 #6B50D3 #9481DF

Accessibility & contrast

On white

8.85
#4A2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4A2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EB8
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EB8#FFFFFF#000000##FFFFFF
##4A2EB81.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBC
Deuteranopia (green-blind)
#0045B5
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a2eb8;
/* rgb */ color: rgb(74, 46, 184);
/* oklch */ color: oklch(43.1% 0.202 283.3);
Tailwind
colors: {
  custom: {
    50: '#896acf',
    500: '#4a2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eb8;
$custom-light: #896acf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eb8",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 252.174,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43131,
    "c": 0.20185,
    "h": 283.3
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#4A2EB8
secondary
#B8C879
accent
#E345C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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