#4F31C2#4F31C2

#4F31C2 is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 44.9% C 0.210 H 283.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#4F31C2
RGBrgb(79, 49, 194)
HSLhsl(252, 60%, 48%)
HSVhsv(252, 75%, 76%)
CMYKcmyk(59.3%, 74.7%, 0%, 23.9%)
CIE-LABlab(33.46, 51.22, -70.83)
CIE-LCHlch(33.46, 87.41, 305.87°)
OKLaboklab(44.91% 0.049 -0.2041)
OKLCHoklch(44.91% 0.21 283.5)
XYZxyz(14.0574, 7.7530, 51.7842)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31C2 #A4C231
analogous
#315BC2 #4F31C2 #9831C2
triadic
#4F31C2 #C24F31 #31C24F
tetradic
#4F31C2 #C2315B #A4C231 #31C298
square
#4F31C2 #C2315B #A4C231 #31C298
split-complementary
#4F31C2 #C29831 #5BC231
monochromatic
#271860 #3B2591 #4F31C2 #745BD6 #9D8CE2

Accessibility & contrast

On white

8.23
#4F31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4F31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31C2
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31C2#FFFFFF#000000##FFFFFF
##4F31C21.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4f31c2;
/* rgb */ color: rgb(79, 49, 194);
/* oklch */ color: oklch(44.9% 0.210 283.5);
Tailwind
colors: {
  custom: {
    50: '#8e6dd6',
    500: '#4f31c2',
    950: '#000000',
  },
}
SCSS
$custom: #4f31c2;
$custom-light: #8e6dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31c2",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 252.414,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44908,
    "c": 0.20993,
    "h": 283.5
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#4F31C2
secondary
#BDCC83
accent
#E345C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #4F31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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