#4731AF#4731AF

#4731AF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.188 H 282.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4731AF
RGBrgb(71, 49, 175)
HSLhsl(250, 56%, 44%)
HSVhsv(250, 72%, 69%)
CMYKcmyk(59.4%, 72%, 0%, 31.4%)
CIE-LABlab(30.95, 44.44, -63.74)
CIE-LCHlch(30.95, 77.70, 304.88°)
OKLaboklab(42.41% 0.0418 -0.1836)
OKLCHoklch(42.41% 0.188 282.8)
XYZxyz(11.4323, 6.6306, 41.2265)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4731AF #99AF31
analogous
#315AAF #4731AF #8631AF
triadic
#4731AF #AF4731 #31AF47
tetradic
#4731AF #AF315A #99AF31 #31AF86
square
#4731AF #AF315A #99AF31 #31AF86
split-complementary
#4731AF #AF8631 #5AAF31
monochromatic
#20164F #34247F #4731AF #654FCE #8F7FDB

Accessibility & contrast

On white

9.03
#4731AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4731AF#FFFFFF#000000##FFFFFF
##4731AF1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4731af;
/* rgb */ color: rgb(71, 49, 175);
/* oklch */ color: oklch(42.4% 0.188 282.8);
Tailwind
colors: {
  custom: {
    50: '#866bc8',
    500: '#4731af',
    950: '#000000',
  },
}
SCSS
$custom: #4731af;
$custom-light: #866bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4731af",
  "rgb": {
    "r": 71,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 250.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42411,
    "c": 0.18833,
    "h": 282.8
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#4731AF
secondary
#B7C478
accent
#E048C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4731AF

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

Preview Lab → · Contrast checker → · Palette generator →

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