#4831B3#4831B3

#4831B3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.193 H 282.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4831B3
RGBrgb(72, 49, 179)
HSLhsl(251, 57%, 45%)
HSVhsv(251, 73%, 70%)
CMYKcmyk(59.8%, 72.6%, 0%, 29.8%)
CIE-LABlab(31.41, 45.80, -65.36)
CIE-LCHlch(31.41, 79.81, 305.02°)
OKLaboklab(42.87% 0.0424 -0.1884)
OKLCHoklch(42.87% 0.193 282.7)
XYZxyz(11.9050, 6.8282, 43.3297)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4831B3 #9CB331
analogous
#315BB3 #4831B3 #8931B3
triadic
#4831B3 #B34831 #31B348
tetradic
#4831B3 #B3315B #9CB331 #31B389
square
#4831B3 #B3315B #9CB331 #31B389
split-complementary
#4831B3 #B38931 #5BB331
monochromatic
#211753 #352483 #4831B3 #6852D0 #9282DD

Accessibility & contrast

On white

8.88
#4831B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4831B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4831B3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4831B3#FFFFFF#000000##FFFFFF
##4831B31.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4831b3;
/* rgb */ color: rgb(72, 49, 179);
/* oklch */ color: oklch(42.9% 0.193 282.7);
Tailwind
colors: {
  custom: {
    50: '#876ccb',
    500: '#4831b3',
    950: '#000000',
  },
}
SCSS
$custom: #4831b3;
$custom-light: #876ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4831b3",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 250.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.19307,
    "h": 282.7
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#4831B3
secondary
#B8C67A
accent
#E048C5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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