#4B339F#4B339F

#4B339F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.166 H 287.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4B339F
RGBrgb(75, 51, 159)
HSLhsl(253, 51%, 41%)
HSVhsv(253, 68%, 62%)
CMYKcmyk(52.8%, 67.9%, 0%, 37.6%)
CIE-LABlab(30.32, 39.05, -55.13)
CIE-LCHlch(30.32, 67.56, 305.31°)
OKLaboklab(41.61% 0.0486 -0.1583)
OKLCHoklch(41.61% 0.166 287.1)
XYZxyz(10.3416, 6.3662, 33.4780)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B339F #879F33
analogous
#33519F #4B339F #81339F
triadic
#4B339F #9F4B33 #339F4B
tetradic
#4B339F #9F3351 #879F33 #339F81
square
#4B339F #9F3351 #879F33 #339F81
split-complementary
#4B339F #9F8133 #519F33
monochromatic
#1F1542 #352471 #4B339F #654AC5 #8D79D4

Accessibility & contrast

On white

9.24
#4B339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4B339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B339F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B339F#FFFFFF#000000##FFFFFF
##4B339F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#2B4E64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b339f;
/* rgb */ color: rgb(75, 51, 159);
/* oklch */ color: oklch(41.6% 0.166 287.1);
Tailwind
colors: {
  custom: {
    50: '#856cbc',
    500: '#4b339f',
    950: '#000000',
  },
}
SCSS
$custom: #4b339f;
$custom-light: #856cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b339f",
  "rgb": {
    "r": 75,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 253.333,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41614,
    "c": 0.16555,
    "h": 287.1
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#4B339F
secondary
#ACBC71
accent
#DB4DBB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4B339F

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

Preview Lab → · Contrast checker → · Palette generator →

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