#4B337F#4B337F

#4B337F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.0% C 0.123 H 294.6°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4B337F
RGBrgb(75, 51, 127)
HSLhsl(259, 43%, 35%)
HSVhsv(259, 60%, 50%)
CMYKcmyk(40.9%, 59.8%, 0%, 50.2%)
CIE-LABlab(27.83, 29.41, -39.42)
CIE-LCHlch(27.83, 49.18, 306.72°)
OKLaboklab(39.03% 0.0512 -0.1121)
OKLCHoklch(39.03% 0.123 294.6)
XYZxyz(7.9152, 5.3956, 20.6990)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B337F #677F33
analogous
#33417F #4B337F #71337F
triadic
#4B337F #7F4B33 #337F4B
tetradic
#4B337F #7F3341 #677F33 #337F71
square
#4B337F #7F3341 #677F33 #337F71
split-complementary
#4B337F #7F7133 #417F33
monochromatic
#171028 #312153 #4B337F #6545AB #8669C3

Accessibility & contrast

On white

10.10
#4B337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4B337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B337F
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B337F#FFFFFF#000000##FFFFFF
##4B337F1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074282
Deuteranopia (green-blind)
#12407D
Tritanopia (blue-blind)
#3E4354
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4b337f;
/* rgb */ color: rgb(75, 51, 127);
/* oklch */ color: oklch(39.0% 0.123 294.6);
Tailwind
colors: {
  custom: {
    50: '#816ba5',
    500: '#4b337f',
    950: '#000000',
  },
}
SCSS
$custom: #4b337f;
$custom-light: #816ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b337f",
  "rgb": {
    "r": 75,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 258.947,
    "s": 42.697,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39025,
    "c": 0.12324,
    "h": 294.6
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#4B337F
secondary
#94AB63
accent
#D255AB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4B337F

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

Preview Lab → · Contrast checker → · Palette generator →

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