#4F34B5#4F34B5

#4F34B5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.191 H 285.0°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4F34B5
RGBrgb(79, 52, 181)
HSLhsl(253, 55%, 46%)
HSVhsv(253, 71%, 71%)
CMYKcmyk(56.4%, 71.3%, 0%, 29%)
CIE-LABlab(32.82, 45.80, -64.22)
CIE-LCHlch(32.82, 78.88, 305.50°)
OKLaboklab(44.09% 0.0496 -0.1848)
OKLCHoklch(44.09% 0.191 285)
XYZxyz(12.7904, 7.4537, 44.4718)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34B5 #9AB534
analogous
#3459B5 #4F34B5 #8F34B5
triadic
#4F34B5 #B54F34 #34B54F
tetradic
#4F34B5 #B53459 #9AB534 #34B58F
square
#4F34B5 #B53459 #9AB534 #34B58F
split-complementary
#4F34B5 #B58F34 #59B534
monochromatic
#251956 #3A2685 #4F34B5 #7057CF #9987DC

Accessibility & contrast

On white

8.43
#4F34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4F34B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34B5
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34B5#FFFFFF#000000##FFFFFF
##4F34B51.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#1E5671
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f34b5;
/* rgb */ color: rgb(79, 52, 181);
/* oklch */ color: oklch(44.1% 0.191 285.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ecc',
    500: '#4f34b5',
    950: '#000000',
  },
}
SCSS
$custom: #4f34b5;
$custom-light: #8b6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34b5",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 252.558,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44086,
    "c": 0.19135,
    "h": 285
  },
  "luminance": 0.07454
}

Semantic roles & 50–950 ramp

primary
#4F34B5
secondary
#B7C67F
accent
#DF49BF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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