#4A287F#4A287F

#4A287F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.140 H 297.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4A287F
RGBrgb(74, 40, 127)
HSLhsl(263, 52%, 33%)
HSVhsv(263, 69%, 50%)
CMYKcmyk(41.7%, 68.5%, 0%, 50.2%)
CIE-LABlab(25.28, 35.70, -43.56)
CIE-LCHlch(25.28, 56.32, 309.34°)
OKLaboklab(37.14% 0.0634 -0.1243)
OKLCHoklch(37.14% 0.14 297)
XYZxyz(7.4126, 4.5056, 20.5537)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A287F #5D7F28
analogous
#28327F #4A287F #75287F
triadic
#4A287F #7F4A28 #287F4A
tetradic
#4A287F #7F2832 #5D7F28 #287F75
square
#4A287F #7F2832 #5D7F28 #287F75
split-complementary
#4A287F #7F7528 #327F28
monochromatic
#140B22 #2F1950 #4A287F #6537AE #8457CA

Accessibility & contrast

On white

11.05
#4A287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4A287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A287F
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A287F#FFFFFF#000000##FFFFFF
##4A287F1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#3D3C50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a287f;
/* rgb */ color: rgb(74, 40, 127);
/* oklch */ color: oklch(37.1% 0.140 297.0);
Tailwind
colors: {
  custom: {
    50: '#8164a5',
    500: '#4a287f',
    950: '#000000',
  },
}
SCSS
$custom: #4a287f;
$custom-light: #8164a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a287f",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 263.448,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3714,
    "c": 0.1395,
    "h": 297
  },
  "luminance": 0.04506
}

Semantic roles & 50–950 ramp

primary
#4A287F
secondary
#8BAF54
accent
#DC4CA4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A287F

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

Preview Lab → · Contrast checker → · Palette generator →

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