#4A309F#4A309F

#4A309F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.169 H 287.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4A309F
RGBrgb(74, 48, 159)
HSLhsl(254, 54%, 41%)
HSVhsv(254, 70%, 62%)
CMYKcmyk(53.5%, 69.8%, 0%, 37.6%)
CIE-LABlab(29.59, 40.59, -56.32)
CIE-LCHlch(29.59, 69.42, 305.78°)
OKLaboklab(41.07% 0.05 -0.1618)
OKLCHoklch(41.07% 0.169 287.2)
XYZxyz(10.1371, 6.0724, 33.4321)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A309F #859F30
analogous
#304D9F #4A309F #81309F
triadic
#4A309F #9F4A30 #309F4A
tetradic
#4A309F #9F304D #859F30 #309F81
square
#4A309F #9F304D #859F30 #309F81
split-complementary
#4A309F #9F8130 #4D9F30
monochromatic
#1E1441 #342270 #4A309F #6445C7 #8B74D5

Accessibility & contrast

On white

9.48
#4A309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4A309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A309F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A309F#FFFFFF#000000##FFFFFF
##4A309F1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#294D64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a309f;
/* rgb */ color: rgb(74, 48, 159);
/* oklch */ color: oklch(41.1% 0.169 287.2);
Tailwind
colors: {
  custom: {
    50: '#856abc',
    500: '#4a309f',
    950: '#000000',
  },
}
SCSS
$custom: #4a309f;
$custom-light: #856abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a309f",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 254.054,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41071,
    "c": 0.16932,
    "h": 287.2
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#4A309F
secondary
#AABD6E
accent
#DD4BBB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A309F

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

Preview Lab → · Contrast checker → · Palette generator →

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