#4A299E#4A299E

#4A299E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.176 H 288.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4A299E
RGBrgb(74, 41, 158)
HSLhsl(257, 59%, 39%)
HSVhsv(257, 74%, 62%)
CMYKcmyk(53.2%, 74.1%, 0%, 38%)
CIE-LABlab(28.14, 44.09, -58.09)
CIE-LCHlch(28.14, 72.93, 307.20°)
OKLaboklab(40.01% 0.0565 -0.1669)
OKLCHoklch(40.01% 0.176 288.7)
XYZxyz(9.7867, 5.5099, 32.8890)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A299E #7D9E29
analogous
#29439E #4A299E #85299E
triadic
#4A299E #9E4A29 #299E4A
tetradic
#4A299E #9E2943 #7D9E29 #299E85
square
#4A299E #9E2943 #7D9E29 #299E85
split-complementary
#4A299E #9E8529 #439E29
monochromatic
#1C103D #331C6D #4A299E #6239CC #8969D8

Accessibility & contrast

On white

9.99
#4A299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4A299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A299E
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A299E#FFFFFF#000000##FFFFFF
##4A299E1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#2A4961
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a299e;
/* rgb */ color: rgb(74, 41, 158);
/* oklch */ color: oklch(40.0% 0.176 288.7);
Tailwind
colors: {
  custom: {
    50: '#8566bc',
    500: '#4a299e',
    950: '#000000',
  },
}
SCSS
$custom: #4a299e;
$custom-light: #8566bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a299e",
  "rgb": {
    "r": 74,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 256.923,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40009,
    "c": 0.17623,
    "h": 288.7
  },
  "luminance": 0.0551
}

Semantic roles & 50–950 ramp

primary
#4A299E
secondary
#A5BF64
accent
#E246B6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A299E

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

Preview Lab → · Contrast checker → · Palette generator →

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