#4F31C0#4F31C0

#4F31C0 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.7% C 0.208 H 283.8°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#4F31C0
RGBrgb(79, 49, 192)
HSLhsl(253, 59%, 47%)
HSVhsv(253, 74%, 75%)
CMYKcmyk(58.9%, 74.5%, 0%, 24.7%)
CIE-LABlab(33.27, 50.63, -69.97)
CIE-LCHlch(33.27, 86.37, 305.89°)
OKLaboklab(44.72% 0.0494 -0.2016)
OKLCHoklch(44.72% 0.208 283.8)
XYZxyz(13.8343, 7.6638, 50.6092)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31C0 #A2C031
analogous
#315BC0 #4F31C0 #9631C0
triadic
#4F31C0 #C04F31 #31C04F
tetradic
#4F31C0 #C0315B #A2C031 #31C096
square
#4F31C0 #C0315B #A2C031 #31C096
split-complementary
#4F31C0 #C09631 #5BC031
monochromatic
#27185E #3B258F #4F31C0 #7359D5 #9C8AE1

Accessibility & contrast

On white

8.29
#4F31C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4F31C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31C0
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31C0#FFFFFF#000000##FFFFFF
##4F31C01.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#055976
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f31c0;
/* rgb */ color: rgb(79, 49, 192);
/* oklch */ color: oklch(44.7% 0.208 283.8);
Tailwind
colors: {
  custom: {
    50: '#8d6dd4',
    500: '#4f31c0',
    950: '#000000',
  },
}
SCSS
$custom: #4f31c0;
$custom-light: #8d6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31c0",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 252.587,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44717,
    "c": 0.20759,
    "h": 283.8
  },
  "luminance": 0.07665
}

Semantic roles & 50–950 ramp

primary
#4F31C0
secondary
#BCCB82
accent
#E345C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4F31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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