#4831BA#4831BA

#4831BA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.5% C 0.201 H 281.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#4831BA
RGBrgb(72, 49, 186)
HSLhsl(250, 58%, 46%)
HSVhsv(250, 74%, 73%)
CMYKcmyk(61.3%, 73.7%, 0%, 27.1%)
CIE-LABlab(32.08, 47.93, -68.43)
CIE-LCHlch(32.08, 83.54, 305.01°)
OKLaboklab(43.55% 0.0409 -0.1973)
OKLCHoklch(43.55% 0.201 281.7)
XYZxyz(12.6309, 7.1186, 47.1533)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4831BA #A3BA31
analogous
#315EBA #4831BA #8C31BA
triadic
#4831BA #BA4831 #31BA48
tetradic
#4831BA #BA315E #A3BA31 #31BA8C
square
#4831BA #BA315E #A3BA31 #31BA8C
split-complementary
#4831BA #BA8C31 #5EBA31
monochromatic
#221759 #35248A #4831BA #6B56D2 #9586DF

Accessibility & contrast

On white

8.66
#4831BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4831BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4831BA
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4831BA#FFFFFF#000000##FFFFFF
##4831BA1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4831ba;
/* rgb */ color: rgb(72, 49, 186);
/* oklch */ color: oklch(43.5% 0.201 281.7);
Tailwind
colors: {
  custom: {
    50: '#896cd0',
    500: '#4831ba',
    950: '#000000',
  },
}
SCSS
$custom: #4831ba;
$custom-light: #896cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4831ba",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 250.073,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43545,
    "c": 0.20149,
    "h": 281.7
  },
  "luminance": 0.0712
}

Semantic roles & 50–950 ramp

primary
#4831BA
secondary
#BCC97E
accent
#E246C7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4831BA

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

Preview Lab → · Contrast checker → · Palette generator →

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