#4A229F#4A229F

#4A229F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.185 H 289.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4A229F
RGBrgb(74, 34, 159)
HSLhsl(259, 65%, 38%)
HSVhsv(259, 79%, 62%)
CMYKcmyk(53.5%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.03, 47.82, -60.53)
CIE-LCHlch(27.03, 77.14, 308.31°)
OKLaboklab(39.25% 0.0618 -0.174)
OKLCHoklch(39.25% 0.185 289.5)
XYZxyz(9.6523, 5.1027, 33.2705)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A229F #779F22
analogous
#22389F #4A229F #88229F
triadic
#4A229F #9F4A22 #229F4A
tetradic
#4A229F #9F2238 #779F22 #229F88
square
#4A229F #9F2238 #779F22 #229F88
split-complementary
#4A229F #9F8822 #389F22
monochromatic
#1B0C3A #33176D #4A229F #612DD1 #875FDD

Accessibility & contrast

On white

10.39
#4A229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4A229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A229F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A229F#FFFFFF#000000##FFFFFF
##4A229F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#2A4660
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a229f;
/* rgb */ color: rgb(74, 34, 159);
/* oklch */ color: oklch(39.3% 0.185 289.5);
Tailwind
colors: {
  custom: {
    50: '#8662bc',
    500: '#4a229f',
    950: '#000000',
  },
}
SCSS
$custom: #4a229f;
$custom-light: #8662bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a229f",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 259.2,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.18467,
    "h": 289.5
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#4A229F
secondary
#A1C15B
accent
#E840B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A229F

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

Preview Lab → · Contrast checker → · Palette generator →

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