#4731AA#4731AA

#4731AA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.182 H 283.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4731AA
RGBrgb(71, 49, 170)
HSLhsl(251, 55%, 43%)
HSVhsv(251, 71%, 67%)
CMYKcmyk(58.2%, 71.2%, 0%, 33.3%)
CIE-LABlab(30.49, 42.90, -61.50)
CIE-LCHlch(30.49, 74.98, 304.90°)
OKLaboklab(41.94% 0.0428 -0.1771)
OKLCHoklch(41.94% 0.182 283.6)
XYZxyz(10.9503, 6.4378, 38.6880)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4731AA #94AA31
analogous
#3157AA #4731AA #8331AA
triadic
#4731AA #AA4731 #31AA47
tetradic
#4731AA #AA3157 #94AA31 #31AA83
square
#4731AA #AA3157 #94AA31 #31AA83
split-complementary
#4731AA #AA8331 #57AA31
monochromatic
#1F164B #33237A #4731AA #644DCC #8D7CD9

Accessibility & contrast

On white

9.18
#4731AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4731AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4731AA#FFFFFF#000000##FFFFFF
##4731AA1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#0F516A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4731aa;
/* rgb */ color: rgb(71, 49, 170);
/* oklch */ color: oklch(41.9% 0.182 283.6);
Tailwind
colors: {
  custom: {
    50: '#856bc4',
    500: '#4731aa',
    950: '#000000',
  },
}
SCSS
$custom: #4731aa;
$custom-light: #856bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4731aa",
  "rgb": {
    "r": 71,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 250.909,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41943,
    "c": 0.18216,
    "h": 283.6
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#4731AA
secondary
#B4C275
accent
#DF49C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4731AA

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

Preview Lab → · Contrast checker → · Palette generator →

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