#4B2EA8#4B2EA8

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

Color values

HEX#4B2EA8
RGBrgb(75, 46, 168)
HSLhsl(254, 57%, 42%)
HSVhsv(254, 73%, 66%)
CMYKcmyk(55.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(30.10, 44.55, -60.92)
CIE-LCHlch(30.10, 75.47, 306.17°)
OKLaboklab(41.7% 0.0515 -0.1752)
OKLCHoklch(41.7% 0.183 286.4)
XYZxyz(10.9444, 6.2764, 37.6730)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2EA8 #8BA82E
analogous
#2E4EA8 #4B2EA8 #882EA8
triadic
#4B2EA8 #A84B2E #2EA84B
tetradic
#4B2EA8 #A82E4E #8BA82E #2EA888
square
#4B2EA8 #A82E4E #8BA82E #2EA888
split-complementary
#4B2EA8 #A8882E #4EA82E
monochromatic
#201448 #362178 #4B2EA8 #6647CD #8E77DA

Accessibility & contrast

On white

9.31
#4B2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4B2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2EA8
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2EA8#FFFFFF#000000##FFFFFF
##4B2EA81.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)
#004AAC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#224F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b2ea8;
/* rgb */ color: rgb(75, 46, 168);
/* oklch */ color: oklch(41.7% 0.183 286.4);
Tailwind
colors: {
  custom: {
    50: '#876ac3',
    500: '#4b2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #4b2ea8;
$custom-light: #876ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2ea8",
  "rgb": {
    "r": 75,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 254.262,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41701,
    "c": 0.18265,
    "h": 286.4
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#4B2EA8
secondary
#AEC270
accent
#E048BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4B2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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