#4831AF#4831AF

#4831AF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.188 H 283.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4831AF
RGBrgb(72, 49, 175)
HSLhsl(251, 56%, 44%)
HSVhsv(251, 72%, 69%)
CMYKcmyk(58.9%, 72%, 0%, 31.4%)
CIE-LABlab(31.04, 44.58, -63.59)
CIE-LCHlch(31.04, 77.66, 305.04°)
OKLaboklab(42.5% 0.0432 -0.1832)
OKLCHoklch(42.5% 0.188 283.3)
XYZxyz(11.5063, 6.6687, 41.2300)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4831AF #98AF31
analogous
#3159AF #4831AF #8731AF
triadic
#4831AF #AF4831 #31AF48
tetradic
#4831AF #AF3159 #98AF31 #31AF87
square
#4831AF #AF3159 #98AF31 #31AF87
split-complementary
#4831AF #AF8731 #59AF31
monochromatic
#21164F #34247F #4831AF #664FCE #907FDB

Accessibility & contrast

On white

9.00
#4831AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4831AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4831AF
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4831AF#FFFFFF#000000##FFFFFF
##4831AF1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#08536D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4831af;
/* rgb */ color: rgb(72, 49, 175);
/* oklch */ color: oklch(42.5% 0.188 283.3);
Tailwind
colors: {
  custom: {
    50: '#876bc8',
    500: '#4831af',
    950: '#000000',
  },
}
SCSS
$custom: #4831af;
$custom-light: #876bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4831af",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 250.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42497,
    "c": 0.18819,
    "h": 283.3
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#4831AF
secondary
#B6C478
accent
#E048C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4831AF

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

Preview Lab → · Contrast checker → · Palette generator →

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