#4831B2#4831B2

#4831B2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.192 H 282.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4831B2
RGBrgb(72, 49, 178)
HSLhsl(251, 57%, 45%)
HSVhsv(251, 72%, 70%)
CMYKcmyk(59.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(31.32, 45.50, -64.92)
CIE-LCHlch(31.32, 79.28, 305.02°)
OKLaboklab(42.78% 0.0426 -0.1871)
OKLCHoklch(42.78% 0.192 282.8)
XYZxyz(11.8042, 6.7879, 42.7990)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4831B2 #9BB231
analogous
#315AB2 #4831B2 #8931B2
triadic
#4831B2 #B24831 #31B248
tetradic
#4831B2 #B2315A #9BB231 #31B289
square
#4831B2 #B2315A #9BB231 #31B289
split-complementary
#4831B2 #B28931 #5AB231
monochromatic
#211752 #352482 #4831B2 #6851CF #9181DC

Accessibility & contrast

On white

8.91
#4831B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4831B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4831B2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4831B2#FFFFFF#000000##FFFFFF
##4831B21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4831b2;
/* rgb */ color: rgb(72, 49, 178);
/* oklch */ color: oklch(42.8% 0.192 282.8);
Tailwind
colors: {
  custom: {
    50: '#876cca',
    500: '#4831b2',
    950: '#000000',
  },
}
SCSS
$custom: #4831b2;
$custom-light: #876cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4831b2",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 250.698,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4278,
    "c": 0.19185,
    "h": 282.8
  },
  "luminance": 0.06789
}

Semantic roles & 50–950 ramp

primary
#4831B2
secondary
#B8C579
accent
#E048C5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4831B2

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

Preview Lab → · Contrast checker → · Palette generator →

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