#4B308F#4B308F

#4B308F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.149 H 291.2°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4B308F
RGBrgb(75, 48, 143)
HSLhsl(257, 50%, 37%)
HSVhsv(257, 66%, 56%)
CMYKcmyk(47.6%, 66.4%, 0%, 43.9%)
CIE-LABlab(28.36, 35.97, -48.53)
CIE-LCHlch(28.36, 60.41, 306.55°)
OKLaboklab(39.79% 0.0538 -0.1389)
OKLCHoklch(39.79% 0.149 291.2)
XYZxyz(8.9151, 5.5926, 26.5910)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B308F #748F30
analogous
#30448F #4B308F #7B308F
triadic
#4B308F #8F4B30 #308F4B
tetradic
#4B308F #8F3044 #748F30 #308F7B
square
#4B308F #8F3044 #748F30 #308F7B
split-complementary
#4B308F #8F7B30 #448F30
monochromatic
#1B1133 #332161 #4B308F #633FBD #886CCE

Accessibility & contrast

On white

9.91
#4B308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4B308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B308F
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B308F#FFFFFF#000000##FFFFFF
##4B308F1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#36475B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4b308f;
/* rgb */ color: rgb(75, 48, 143);
/* oklch */ color: oklch(39.8% 0.149 291.2);
Tailwind
colors: {
  custom: {
    50: '#836ab1',
    500: '#4b308f',
    950: '#000000',
  },
}
SCSS
$custom: #4b308f;
$custom-light: #836ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b308f",
  "rgb": {
    "r": 75,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 257.053,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39791,
    "c": 0.14893,
    "h": 291.2
  },
  "luminance": 0.05593
}

Semantic roles & 50–950 ramp

primary
#4B308F
secondary
#9EB566
accent
#D94FB2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4B308F

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

Preview Lab → · Contrast checker → · Palette generator →

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