#4731B3#4731B3

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

Color values

HEX#4731B3
RGBrgb(71, 49, 179)
HSLhsl(250, 57%, 45%)
HSVhsv(250, 73%, 70%)
CMYKcmyk(60.3%, 72.6%, 0%, 29.8%)
CIE-LABlab(31.32, 45.67, -65.51)
CIE-LCHlch(31.32, 79.86, 304.88°)
OKLaboklab(42.79% 0.041 -0.1888)
OKLCHoklch(42.79% 0.193 282.2)
XYZxyz(11.8310, 6.7901, 43.3263)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4731B3 #9DB331
analogous
#315CB3 #4731B3 #8831B3
triadic
#4731B3 #B34731 #31B347
tetradic
#4731B3 #B3315C #9DB331 #31B388
square
#4731B3 #B3315C #9DB331 #31B388
split-complementary
#4731B3 #B38831 #5CB331
monochromatic
#211753 #342483 #4731B3 #6752D0 #9182DD

Accessibility & contrast

On white

8.91
#4731B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4731B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4731B3#FFFFFF#000000##FFFFFF
##4731B31.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.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: #4731b3;
/* rgb */ color: rgb(71, 49, 179);
/* oklch */ color: oklch(42.8% 0.193 282.2);
Tailwind
colors: {
  custom: {
    50: '#876ccb',
    500: '#4731b3',
    950: '#000000',
  },
}
SCSS
$custom: #4731b3;
$custom-light: #876ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4731b3",
  "rgb": {
    "r": 71,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 250.154,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4279,
    "c": 0.19321,
    "h": 282.2
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

primary
#4731B3
secondary
#B9C67A
accent
#E048C6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4731B3

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

Preview Lab → · Contrast checker → · Palette generator →

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