#4731AE#4731AE

#4731AE is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.187 H 283.0°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4731AE
RGBrgb(71, 49, 174)
HSLhsl(251, 56%, 44%)
HSVhsv(251, 72%, 68%)
CMYKcmyk(59.2%, 71.8%, 0%, 31.8%)
CIE-LABlab(30.86, 44.13, -63.29)
CIE-LCHlch(30.86, 77.16, 304.89°)
OKLaboklab(42.32% 0.042 -0.1823)
OKLCHoklch(42.32% 0.187 283)
XYZxyz(11.3345, 6.5915, 40.7112)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4731AE #98AE31
analogous
#3159AE #4731AE #8531AE
triadic
#4731AE #AE4731 #31AE47
tetradic
#4731AE #AE3159 #98AE31 #31AE85
square
#4731AE #AE3159 #98AE31 #31AE85
split-complementary
#4731AE #AE8531 #59AE31
monochromatic
#20164E #34247E #4731AE #654FCD #8F7FDB

Accessibility & contrast

On white

9.06
#4731AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4731AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4731AE
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4731AE#FFFFFF#000000##FFFFFF
##4731AE1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#04536C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4731ae;
/* rgb */ color: rgb(71, 49, 174);
/* oklch */ color: oklch(42.3% 0.187 283.0);
Tailwind
colors: {
  custom: {
    50: '#866bc7',
    500: '#4731ae',
    950: '#000000',
  },
}
SCSS
$custom: #4731ae;
$custom-light: #866bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4731ae",
  "rgb": {
    "r": 71,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 250.56,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42317,
    "c": 0.1871,
    "h": 283
  },
  "luminance": 0.06592
}

Semantic roles & 50–950 ramp

primary
#4731AE
secondary
#B6C477
accent
#DF48C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4731AE

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

Preview Lab → · Contrast checker → · Palette generator →

#4731AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva