#4A2F87#4A2F87

#4A2F87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.140 H 292.9°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4A2F87
RGBrgb(74, 47, 135)
HSLhsl(258, 48%, 36%)
HSVhsv(258, 65%, 53%)
CMYKcmyk(45.2%, 65.2%, 0%, 47.1%)
CIE-LABlab(27.40, 33.97, -45.13)
CIE-LCHlch(27.40, 56.48, 306.97°)
OKLaboklab(38.87% 0.0543 -0.1289)
OKLCHoklch(38.87% 0.14 292.9)
XYZxyz(8.2125, 5.2379, 23.4953)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F87 #6C872F
analogous
#2F4087 #4A2F87 #762F87
triadic
#4A2F87 #874A2F #2F874A
tetradic
#4A2F87 #872F40 #6C872F #2F8776
square
#4A2F87 #872F40 #6C872F #2F8776
split-complementary
#4A2F87 #87762F #40872F
monochromatic
#180F2C #311F5A #4A2F87 #633FB4 #8566CA

Accessibility & contrast

On white

10.26
#4A2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4A2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2F87
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F87#FFFFFF#000000##FFFFFF
##4A2F871.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#394356
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a2f87;
/* rgb */ color: rgb(74, 47, 135);
/* oklch */ color: oklch(38.9% 0.140 292.9);
Tailwind
colors: {
  custom: {
    50: '#8269ab',
    500: '#4a2f87',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f87;
$custom-light: #8269ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f87",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 258.409,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.13988,
    "h": 292.9
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#4A2F87
secondary
#98B161
accent
#D850AE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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