#4831AB#4831AB

#4831AB is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.183 H 283.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4831AB
RGBrgb(72, 49, 171)
HSLhsl(251, 55%, 43%)
HSVhsv(251, 71%, 67%)
CMYKcmyk(57.9%, 71.3%, 0%, 32.9%)
CIE-LABlab(30.67, 43.36, -61.80)
CIE-LCHlch(30.67, 75.49, 305.06°)
OKLaboklab(42.12% 0.044 -0.1779)
OKLCHoklch(42.12% 0.183 283.9)
XYZxyz(11.1192, 6.5139, 39.1916)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4831AB #94AB31
analogous
#3157AB #4831AB #8531AB
triadic
#4831AB #AB4831 #31AB48
tetradic
#4831AB #AB3157 #94AB31 #31AB85
square
#4831AB #AB3157 #94AB31 #31AB85
split-complementary
#4831AB #AB8531 #57AB31
monochromatic
#20164C #34237B #4831AB #654DCC #8E7DDA

Accessibility & contrast

On white

9.12
#4831AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4831AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4831AB
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4831AB#FFFFFF#000000##FFFFFF
##4831AB1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#12526A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4831ab;
/* rgb */ color: rgb(72, 49, 171);
/* oklch */ color: oklch(42.1% 0.183 283.9);
Tailwind
colors: {
  custom: {
    50: '#866bc5',
    500: '#4831ab',
    950: '#000000',
  },
}
SCSS
$custom: #4831ab;
$custom-light: #866bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4831ab",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 251.311,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42124,
    "c": 0.18327,
    "h": 283.9
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#4831AB
secondary
#B4C275
accent
#DF49C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4831AB

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

Preview Lab → · Contrast checker → · Palette generator →

#4831AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva