#4A288F#4A288F

#4A288F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.159 H 292.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4A288F
RGBrgb(74, 40, 143)
HSLhsl(260, 56%, 36%)
HSVhsv(260, 72%, 56%)
CMYKcmyk(48.3%, 72%, 0%, 43.9%)
CIE-LABlab(26.61, 40.28, -51.39)
CIE-LCHlch(26.61, 65.29, 308.09°)
OKLaboklab(38.51% 0.0607 -0.1473)
OKLCHoklch(38.51% 0.159 292.4)
XYZxyz(8.5394, 4.9563, 26.4880)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A288F #6D8F28
analogous
#28398F #4A288F #7D288F
triadic
#4A288F #8F4A28 #288F4A
tetradic
#4A288F #8F2839 #6D8F28 #288F7D
square
#4A288F #8F2839 #6D8F28 #288F7D
split-complementary
#4A288F #8F7D28 #398F28
monochromatic
#190D2F #311B5F #4A288F #6335BF #855FD2

Accessibility & contrast

On white

10.55
#4A288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4A288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A288F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A288F#FFFFFF#000000##FFFFFF
##4A288F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#354258
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a288f;
/* rgb */ color: rgb(74, 40, 143);
/* oklch */ color: oklch(38.5% 0.159 292.4);
Tailwind
colors: {
  custom: {
    50: '#8365b1',
    500: '#4a288f',
    950: '#000000',
  },
}
SCSS
$custom: #4a288f;
$custom-light: #8365b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a288f",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 259.806,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3851,
    "c": 0.15929,
    "h": 292.4
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#4A288F
secondary
#99B85B
accent
#E048AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A288F

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

Preview Lab → · Contrast checker → · Palette generator →

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