#4A308B#4A308B

#4A308B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.144 H 291.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4A308B
RGBrgb(74, 48, 139)
HSLhsl(257, 49%, 37%)
HSVhsv(257, 65%, 55%)
CMYKcmyk(46.8%, 65.5%, 0%, 45.5%)
CIE-LABlab(27.94, 34.57, -46.75)
CIE-LCHlch(27.94, 58.14, 306.48°)
OKLaboklab(39.36% 0.0528 -0.1337)
OKLCHoklch(39.36% 0.144 291.6)
XYZxyz(8.5399, 5.4335, 25.0199)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A308B #718B30
analogous
#30448B #4A308B #78308B
triadic
#4A308B #8B4A30 #308B4A
tetradic
#4A308B #8B3044 #718B30 #308B78
square
#4A308B #8B3044 #718B30 #308B78
split-complementary
#4A308B #8B7830 #448B30
monochromatic
#1A1130 #32205E #4A308B #6240B8 #866ACC

Accessibility & contrast

On white

10.06
#4A308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4A308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A308B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A308B#FFFFFF#000000##FFFFFF
##4A308B1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#374559
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a308b;
/* rgb */ color: rgb(74, 48, 139);
/* oklch */ color: oklch(39.4% 0.144 291.6);
Tailwind
colors: {
  custom: {
    50: '#826aae',
    500: '#4a308b',
    950: '#000000',
  },
}
SCSS
$custom: #4a308b;
$custom-light: #826aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a308b",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 257.143,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39359,
    "c": 0.14372,
    "h": 291.6
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#4A308B
secondary
#9CB364
accent
#D850B1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A308B

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

Preview Lab → · Contrast checker → · Palette generator →

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