#4D34B8#4D34B8

#4D34B8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.195 H 283.7°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#4D34B8
RGBrgb(77, 52, 184)
HSLhsl(251, 56%, 46%)
HSVhsv(251, 72%, 72%)
CMYKcmyk(58.2%, 71.7%, 0%, 27.8%)
CIE-LABlab(32.91, 46.40, -65.86)
CIE-LCHlch(32.91, 80.57, 305.17°)
OKLaboklab(44.19% 0.0461 -0.1897)
OKLCHoklch(44.19% 0.195 283.7)
XYZxyz(12.9376, 7.4936, 46.1028)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D34B8 #9FB834
analogous
#345DB8 #4D34B8 #8F34B8
triadic
#4D34B8 #B84D34 #34B84D
tetradic
#4D34B8 #B8345D #9FB834 #34B88F
square
#4D34B8 #B8345D #9FB834 #34B88F
split-complementary
#4D34B8 #B88F34 #5DB834
monochromatic
#251959 #392788 #4D34B8 #7059D0 #9989DE

Accessibility & contrast

On white

8.40
#4D34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4D34B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D34B8
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D34B8#FFFFFF#000000##FFFFFF
##4D34B81.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#0F5872
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d34b8;
/* rgb */ color: rgb(77, 52, 184);
/* oklch */ color: oklch(44.2% 0.195 283.7);
Tailwind
colors: {
  custom: {
    50: '#8b6ece',
    500: '#4d34b8',
    950: '#000000',
  },
}
SCSS
$custom: #4d34b8;
$custom-light: #8b6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#4d34b8",
  "rgb": {
    "r": 77,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 251.364,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44186,
    "c": 0.19521,
    "h": 283.7
  },
  "luminance": 0.07494
}

Semantic roles & 50–950 ramp

primary
#4D34B8
secondary
#BAC880
accent
#DF49C3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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