#4F34B9#4F34B9

#4F34B9 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.196 H 284.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#4F34B9
RGBrgb(79, 52, 185)
HSLhsl(252, 56%, 46%)
HSVhsv(252, 72%, 73%)
CMYKcmyk(57.3%, 71.9%, 0%, 27.5%)
CIE-LABlab(33.18, 46.99, -66.00)
CIE-LCHlch(33.18, 81.02, 305.45°)
OKLaboklab(44.45% 0.0488 -0.19)
OKLCHoklch(44.45% 0.196 284.4)
XYZxyz(13.2067, 7.6202, 46.6645)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34B9 #9EB934
analogous
#345CB9 #4F34B9 #9234B9
triadic
#4F34B9 #B94F34 #34B94F
tetradic
#4F34B9 #B9345C #9EB934 #34B992
square
#4F34B9 #B9345C #9EB934 #34B992
split-complementary
#4F34B9 #B99234 #5CB934
monochromatic
#261959 #3B2789 #4F34B9 #725AD1 #9B89DE

Accessibility & contrast

On white

8.32
#4F34B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4F34B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34B9
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34B9#FFFFFF#000000##FFFFFF
##4F34B91.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#175873
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f34b9;
/* rgb */ color: rgb(79, 52, 185);
/* oklch */ color: oklch(44.5% 0.196 284.4);
Tailwind
colors: {
  custom: {
    50: '#8c6ecf',
    500: '#4f34b9',
    950: '#000000',
  },
}
SCSS
$custom: #4f34b9;
$custom-light: #8c6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34b9",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 252.18,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44453,
    "c": 0.19617,
    "h": 284.4
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F34B9

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

Preview Lab → · Contrast checker → · Palette generator →

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