#4A2F8D#4A2F8D

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

Color values

HEX#4A2F8D
RGBrgb(74, 47, 141)
HSLhsl(257, 50%, 37%)
HSVhsv(257, 67%, 55%)
CMYKcmyk(47.5%, 66.7%, 0%, 44.7%)
CIE-LABlab(27.88, 35.75, -48.08)
CIE-LCHlch(27.88, 59.92, 306.63°)
OKLaboklab(39.37% 0.0537 -0.1376)
OKLCHoklch(39.37% 0.148 291.3)
XYZxyz(8.6469, 5.4117, 25.7831)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F8D #728D2F
analogous
#2F438D #4A2F8D #792F8D
triadic
#4A2F8D #8D4A2F #2F8D4A
tetradic
#4A2F8D #8D2F43 #728D2F #2F8D79
square
#4A2F8D #8D2F43 #728D2F #2F8D79
split-complementary
#4A2F8D #8D792F #438D2F
monochromatic
#1A1031 #32205F #4A2F8D #623EBB #8669CD

Accessibility & contrast

On white

10.08
#4A2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4A2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2F8D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F8D#FFFFFF#000000##FFFFFF
##4A2F8D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#354659
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a2f8d;
/* rgb */ color: rgb(74, 47, 141);
/* oklch */ color: oklch(39.4% 0.148 291.3);
Tailwind
colors: {
  custom: {
    50: '#8269af',
    500: '#4a2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f8d;
$custom-light: #8269af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f8d",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 257.234,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39366,
    "c": 0.14769,
    "h": 291.3
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#4A2F8D
secondary
#9DB464
accent
#DA4EB2
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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