#4A289E#4A289E

#4A289E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.177 H 288.9°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4A289E
RGBrgb(74, 40, 158)
HSLhsl(257, 60%, 39%)
HSVhsv(257, 75%, 62%)
CMYKcmyk(53.2%, 74.7%, 0%, 38%)
CIE-LABlab(27.96, 44.61, -58.39)
CIE-LCHlch(27.96, 73.48, 307.38°)
OKLaboklab(39.88% 0.0573 -0.1678)
OKLCHoklch(39.88% 0.177 288.9)
XYZxyz(9.7526, 5.4416, 32.8776)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A289E #7C9E28
analogous
#28419E #4A289E #85289E
triadic
#4A289E #9E4A28 #289E4A
tetradic
#4A289E #9E2841 #7C9E28 #289E85
square
#4A289E #9E2841 #7C9E28 #289E85
split-complementary
#4A289E #9E8528 #419E28
monochromatic
#1C0F3C #331C6D #4A289E #6237CC #8868D9

Accessibility & contrast

On white

10.06
#4A289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4A289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A289E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A289E#FFFFFF#000000##FFFFFF
##4A289E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a289e;
/* rgb */ color: rgb(74, 40, 158);
/* oklch */ color: oklch(39.9% 0.177 288.9);
Tailwind
colors: {
  custom: {
    50: '#8666bc',
    500: '#4a289e',
    950: '#000000',
  },
}
SCSS
$custom: #4a289e;
$custom-light: #8666bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a289e",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 257.288,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39879,
    "c": 0.17733,
    "h": 288.9
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#4A289E
secondary
#A4BF63
accent
#E345B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A289E

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

Preview Lab → · Contrast checker → · Palette generator →

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