#4F31BC#4F31BC

#4F31BC is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.3% C 0.203 H 284.4°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#4F31BC
RGBrgb(79, 49, 188)
HSLhsl(253, 59%, 46%)
HSVhsv(253, 74%, 74%)
CMYKcmyk(58%, 73.9%, 0%, 26.3%)
CIE-LABlab(32.89, 49.46, -68.24)
CIE-LCHlch(32.89, 84.28, 305.93°)
OKLaboklab(44.34% 0.0504 -0.1965)
OKLCHoklch(44.34% 0.203 284.4)
XYZxyz(13.3971, 7.4889, 48.3068)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31BC #9EBC31
analogous
#3158BC #4F31BC #9531BC
triadic
#4F31BC #BC4F31 #31BC4F
tetradic
#4F31BC #BC3158 #9EBC31 #31BC95
square
#4F31BC #BC3158 #9EBC31 #31BC95
split-complementary
#4F31BC #BC9531 #58BC31
monochromatic
#26185B #3B248B #4F31BC #7257D3 #9B88E0

Accessibility & contrast

On white

8.41
#4F31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4F31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31BC
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31BC#FFFFFF#000000##FFFFFF
##4F31BC1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#125874
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f31bc;
/* rgb */ color: rgb(79, 49, 188);
/* oklch */ color: oklch(44.3% 0.203 284.4);
Tailwind
colors: {
  custom: {
    50: '#8c6dd1',
    500: '#4f31bc',
    950: '#000000',
  },
}
SCSS
$custom: #4f31bc;
$custom-light: #8c6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31bc",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 252.95,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44336,
    "c": 0.20291,
    "h": 284.4
  },
  "luminance": 0.0749
}

Semantic roles & 50–950 ramp

primary
#4F31BC
secondary
#BACA7F
accent
#E246C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4F31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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