#4A31BF#4A31BF

#4A31BF is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.207 H 281.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#4A31BF
RGBrgb(74, 49, 191)
HSLhsl(251, 59%, 47%)
HSVhsv(251, 74%, 75%)
CMYKcmyk(61.3%, 74.3%, 0%, 25.1%)
CIE-LABlab(32.73, 49.69, -70.29)
CIE-LCHlch(32.73, 86.08, 305.26°)
OKLaboklab(44.2% 0.0425 -0.2027)
OKLCHoklch(44.2% 0.207 281.8)
XYZxyz(13.3234, 7.4131, 50.0089)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A31BF #A6BF31
analogous
#315FBF #4A31BF #9131BF
triadic
#4A31BF #BF4A31 #31BF4A
tetradic
#4A31BF #BF315F #A6BF31 #31BF91
square
#4A31BF #BF315F #A6BF31 #31BF91
split-complementary
#4A31BF #BF9131 #5FBF31
monochromatic
#24185E #37258E #4A31BF #6F59D4 #998AE1

Accessibility & contrast

On white

8.46
#4A31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4A31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A31BF
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A31BF#FFFFFF#000000##FFFFFF
##4A31BF1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a31bf;
/* rgb */ color: rgb(74, 49, 191);
/* oklch */ color: oklch(44.2% 0.207 281.8);
Tailwind
colors: {
  custom: {
    50: '#8a6cd4',
    500: '#4a31bf',
    950: '#000000',
  },
}
SCSS
$custom: #4a31bf;
$custom-light: #8a6cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a31bf",
  "rgb": {
    "r": 74,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 250.563,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44195,
    "c": 0.20712,
    "h": 281.8
  },
  "luminance": 0.07414
}

Semantic roles & 50–950 ramp

primary
#4A31BF
secondary
#BECB81
accent
#E245C7
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4A31BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4A31BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva