#4B338F#4B338F

#4B338F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.145 H 290.4°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4B338F
RGBrgb(75, 51, 143)
HSLhsl(256, 47%, 38%)
HSVhsv(256, 64%, 56%)
CMYKcmyk(47.6%, 64.3%, 0%, 43.9%)
CIE-LABlab(29.02, 34.19, -47.46)
CIE-LCHlch(29.02, 58.49, 305.77°)
OKLaboklab(40.27% 0.0505 -0.1357)
OKLCHoklch(40.27% 0.145 290.4)
XYZxyz(9.0420, 5.8463, 26.6333)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B338F #778F33
analogous
#33498F #4B338F #79338F
triadic
#4B338F #8F4B33 #338F4B
tetradic
#4B338F #8F3349 #778F33 #338F79
square
#4B338F #8F3349 #778F33 #338F79
split-complementary
#4B338F #8F7933 #498F33
monochromatic
#1C1335 #332362 #4B338F #6343BC #8870CC

Accessibility & contrast

On white

9.68
#4B338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4B338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B338F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B338F#FFFFFF#000000##FFFFFF
##4B338F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#36495C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4b338f;
/* rgb */ color: rgb(75, 51, 143);
/* oklch */ color: oklch(40.3% 0.145 290.4);
Tailwind
colors: {
  custom: {
    50: '#836cb0',
    500: '#4b338f',
    950: '#000000',
  },
}
SCSS
$custom: #4b338f;
$custom-light: #836cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b338f",
  "rgb": {
    "r": 75,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 255.652,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4027,
    "c": 0.14479,
    "h": 290.4
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#4B338F
secondary
#A1B46A
accent
#D751B4
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4B338F

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

Preview Lab → · Contrast checker → · Palette generator →

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