#4A2EA8#4A2EA8

#4A2EA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.183 H 285.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4A2EA8
RGBrgb(74, 46, 168)
HSLhsl(254, 57%, 42%)
HSVhsv(254, 73%, 66%)
CMYKcmyk(56%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.00, 44.39, -61.09)
CIE-LCHlch(30.00, 75.52, 306.01°)
OKLaboklab(41.61% 0.05 -0.1758)
OKLCHoklch(41.61% 0.183 285.9)
XYZxyz(10.8668, 6.2364, 37.6693)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EA8 #8CA82E
analogous
#2E4FA8 #4A2EA8 #872EA8
triadic
#4A2EA8 #A84A2E #2EA84A
tetradic
#4A2EA8 #A82E4F #8CA82E #2EA887
square
#4A2EA8 #A82E4F #8CA82E #2EA887
split-complementary
#4A2EA8 #A8872E #4FA82E
monochromatic
#201448 #352178 #4A2EA8 #6547CD #8D77DA

Accessibility & contrast

On white

9.34
#4A2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4A2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EA8
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EA8#FFFFFF#000000##FFFFFF
##4A2EA81.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#1F4F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2ea8;
/* rgb */ color: rgb(74, 46, 168);
/* oklch */ color: oklch(41.6% 0.183 285.9);
Tailwind
colors: {
  custom: {
    50: '#876ac3',
    500: '#4a2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ea8;
$custom-light: #876ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ea8",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 253.77,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41607,
    "c": 0.18274,
    "h": 285.9
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#4A2EA8
secondary
#AFC270
accent
#E048BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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