#4F31BA#4F31BA

#4F31BA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.1% C 0.201 H 284.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#4F31BA
RGBrgb(79, 49, 186)
HSLhsl(253, 58%, 46%)
HSVhsv(253, 74%, 73%)
CMYKcmyk(57.5%, 73.7%, 0%, 27.1%)
CIE-LABlab(32.71, 48.87, -67.36)
CIE-LCHlch(32.71, 83.22, 305.96°)
OKLaboklab(44.15% 0.0509 -0.194)
OKLCHoklch(44.15% 0.201 284.7)
XYZxyz(13.1830, 7.4033, 47.1792)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31BA #9CBA31
analogous
#3157BA #4F31BA #9331BA
triadic
#4F31BA #BA4F31 #31BA4F
tetradic
#4F31BA #BA3157 #9CBA31 #31BA93
square
#4F31BA #BA3157 #9CBA31 #31BA93
split-complementary
#4F31BA #BA9331 #57BA31
monochromatic
#261759 #3A248A #4F31BA #7156D2 #9A86DF

Accessibility & contrast

On white

8.47
#4F31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F31BA
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31BA#FFFFFF#000000##FFFFFF
##4F31BA1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#165773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f31ba;
/* rgb */ color: rgb(79, 49, 186);
/* oklch */ color: oklch(44.1% 0.201 284.7);
Tailwind
colors: {
  custom: {
    50: '#8c6cd0',
    500: '#4f31ba',
    950: '#000000',
  },
}
SCSS
$custom: #4f31ba;
$custom-light: #8c6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31ba",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 253.139,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44147,
    "c": 0.20055,
    "h": 284.7
  },
  "luminance": 0.07404
}

Semantic roles & 50–950 ramp

primary
#4F31BA
secondary
#B8C97E
accent
#E246C0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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