#4F34BA#4F34BA

#4F34BA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.197 H 284.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#4F34BA
RGBrgb(79, 52, 186)
HSLhsl(252, 56%, 47%)
HSVhsv(252, 72%, 73%)
CMYKcmyk(57.5%, 72%, 0%, 27.1%)
CIE-LABlab(33.27, 47.29, -66.44)
CIE-LCHlch(33.27, 81.55, 305.44°)
OKLaboklab(44.55% 0.0486 -0.1913)
OKLCHoklch(44.55% 0.197 284.2)
XYZxyz(13.3127, 7.6626, 47.2224)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34BA #9FBA34
analogous
#345CBA #4F34BA #9234BA
triadic
#4F34BA #BA4F34 #34BA4F
tetradic
#4F34BA #BA345C #9FBA34 #34BA92
square
#4F34BA #BA345C #9FBA34 #34BA92
split-complementary
#4F34BA #BA9234 #5CBA34
monochromatic
#26195A #3B278A #4F34BA #725AD1 #9B8ADE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F34BA#FFFFFF#000000##FFFFFF
##4F34BA1.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)
#0052BE
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#155874
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f34ba;
/* rgb */ color: rgb(79, 52, 186);
/* oklch */ color: oklch(44.5% 0.197 284.2);
Tailwind
colors: {
  custom: {
    50: '#8c6ed0',
    500: '#4f34ba',
    950: '#000000',
  },
}
SCSS
$custom: #4f34ba;
$custom-light: #8c6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34ba",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 252.09,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44545,
    "c": 0.19738,
    "h": 284.2
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#4F34BA
secondary
#BAC881
accent
#E048C1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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