#4B31B2#4B31B2

#4B31B2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.191 H 284.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4B31B2
RGBrgb(75, 49, 178)
HSLhsl(252, 57%, 45%)
HSVhsv(252, 72%, 70%)
CMYKcmyk(57.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(31.59, 45.93, -64.46)
CIE-LCHlch(31.59, 79.15, 305.47°)
OKLaboklab(43.04% 0.0469 -0.1856)
OKLCHoklch(43.04% 0.191 284.2)
XYZxyz(12.0334, 6.9061, 42.8098)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B31B2 #98B231
analogous
#3158B2 #4B31B2 #8C31B2
triadic
#4B31B2 #B24B31 #31B24B
tetradic
#4B31B2 #B23158 #98B231 #31B28C
square
#4B31B2 #B23158 #98B231 #31B28C
split-complementary
#4B31B2 #B28C31 #58B231
monochromatic
#231752 #372482 #4B31B2 #6A51CF #9381DC

Accessibility & contrast

On white

8.82
#4B31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4B31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B31B2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B31B2#FFFFFF#000000##FFFFFF
##4B31B21.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#13546E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4b31b2;
/* rgb */ color: rgb(75, 49, 178);
/* oklch */ color: oklch(43.0% 0.191 284.2);
Tailwind
colors: {
  custom: {
    50: '#896cca',
    500: '#4b31b2',
    950: '#000000',
  },
}
SCSS
$custom: #4b31b2;
$custom-light: #896cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4b31b2",
  "rgb": {
    "r": 75,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 252.093,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4304,
    "c": 0.19146,
    "h": 284.2
  },
  "luminance": 0.06907
}

Semantic roles & 50–950 ramp

primary
#4B31B2
secondary
#B6C579
accent
#E048C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4B31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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