#4F31B5#4F31B5

#4F31B5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.195 H 285.5°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4F31B5
RGBrgb(79, 49, 181)
HSLhsl(254, 57%, 45%)
HSVhsv(254, 73%, 71%)
CMYKcmyk(56.4%, 72.9%, 0%, 29%)
CIE-LABlab(32.25, 47.40, -65.16)
CIE-LCHlch(32.25, 80.58, 306.03°)
OKLaboklab(43.68% 0.052 -0.1875)
OKLCHoklch(43.68% 0.195 285.5)
XYZxyz(12.6607, 7.1944, 44.4286)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31B5 #97B531
analogous
#3155B5 #4F31B5 #9131B5
triadic
#4F31B5 #B54F31 #31B54F
tetradic
#4F31B5 #B53155 #97B531 #31B591
square
#4F31B5 #B53155 #97B531 #31B591
split-complementary
#4F31B5 #B59131 #55B531
monochromatic
#251755 #3A2485 #4F31B5 #6F53D0 #9883DD

Accessibility & contrast

On white

8.61
#4F31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4F31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31B5
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31B5#FFFFFF#000000##FFFFFF
##4F31B51.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#1E5570
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f31b5;
/* rgb */ color: rgb(79, 49, 181);
/* oklch */ color: oklch(43.7% 0.195 285.5);
Tailwind
colors: {
  custom: {
    50: '#8b6ccc',
    500: '#4f31b5',
    950: '#000000',
  },
}
SCSS
$custom: #4f31b5;
$custom-light: #8b6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31b5",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 253.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43679,
    "c": 0.19462,
    "h": 285.5
  },
  "luminance": 0.07195
}

Semantic roles & 50–950 ramp

primary
#4F31B5
secondary
#B6C77B
accent
#E147BE
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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