#4A309A#4A309A

#4A309A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.163 H 288.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4A309A
RGBrgb(74, 48, 154)
HSLhsl(255, 52%, 40%)
HSVhsv(255, 69%, 60%)
CMYKcmyk(51.9%, 68.8%, 0%, 39.6%)
CIE-LABlab(29.16, 39.08, -53.97)
CIE-LCHlch(29.16, 66.64, 305.91°)
OKLaboklab(40.63% 0.0508 -0.1549)
OKLCHoklch(40.63% 0.163 288.2)
XYZxyz(9.7120, 5.9024, 31.1931)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A309A #809A30
analogous
#304B9A #4A309A #7F309A
triadic
#4A309A #9A4A30 #309A4A
tetradic
#4A309A #9A304B #809A30 #309A7F
square
#4A309A #9A304B #809A30 #309A7F
split-complementary
#4A309A #9A7F30 #4B9A30
monochromatic
#1D133D #34216B #4A309A #6343C4 #8972D3

Accessibility & contrast

On white

9.63
#4A309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4A309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A309A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A309A#FFFFFF#000000##FFFFFF
##4A309A1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#2D4B61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a309a;
/* rgb */ color: rgb(74, 48, 154);
/* oklch */ color: oklch(40.6% 0.163 288.2);
Tailwind
colors: {
  custom: {
    50: '#846ab9',
    500: '#4a309a',
    950: '#000000',
  },
}
SCSS
$custom: #4a309a;
$custom-light: #846ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a309a",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 254.717,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40629,
    "c": 0.16303,
    "h": 288.2
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#4A309A
secondary
#A7BB6B
accent
#DC4CB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A309A

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

Preview Lab → · Contrast checker → · Palette generator →

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