#4B2EA4#4B2EA4

#4B2EA4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.178 H 287.1°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4B2EA4
RGBrgb(75, 46, 164)
HSLhsl(255, 56%, 41%)
HSVhsv(255, 72%, 64%)
CMYKcmyk(54.3%, 72%, 0%, 35.7%)
CIE-LABlab(29.74, 43.36, -59.11)
CIE-LCHlch(29.74, 73.30, 306.26°)
OKLaboklab(41.33% 0.0523 -0.1699)
OKLCHoklch(41.33% 0.178 287.1)
XYZxyz(10.5775, 6.1296, 35.7405)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2EA4 #87A42E
analogous
#2E4CA4 #4B2EA4 #862EA4
triadic
#4B2EA4 #A44B2E #2EA44B
tetradic
#4B2EA4 #A42E4C #87A42E #2EA486
square
#4B2EA4 #A42E4C #87A42E #2EA486
split-complementary
#4B2EA4 #A4862E #4CA42E
monochromatic
#1F1344 #352174 #4B2EA4 #6545CB #8D74D8

Accessibility & contrast

On white

9.43
#4B2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4B2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2EA4
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2EA4#FFFFFF#000000##FFFFFF
##4B2EA41.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#274D66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4b2ea4;
/* rgb */ color: rgb(75, 46, 164);
/* oklch */ color: oklch(41.3% 0.178 287.1);
Tailwind
colors: {
  custom: {
    50: '#8769c0',
    500: '#4b2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #4b2ea4;
$custom-light: #8769c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2ea4",
  "rgb": {
    "r": 75,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 254.746,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41332,
    "c": 0.17779,
    "h": 287.1
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#4B2EA4
secondary
#ACC06E
accent
#DF48BA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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