#4A288C#4A288C

#4A288C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.156 H 293.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4A288C
RGBrgb(74, 40, 140)
HSLhsl(260, 56%, 35%)
HSVhsv(260, 71%, 55%)
CMYKcmyk(47.1%, 71.4%, 0%, 45.1%)
CIE-LABlab(26.35, 39.41, -49.95)
CIE-LCHlch(26.35, 63.63, 308.28°)
OKLaboklab(38.25% 0.0613 -0.143)
OKLCHoklch(38.25% 0.156 293.2)
XYZxyz(8.3152, 4.8666, 25.3071)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A288C #6A8C28
analogous
#28388C #4A288C #7C288C
triadic
#4A288C #8C4A28 #288C4A
tetradic
#4A288C #8C2838 #6A8C28 #288C7C
square
#4A288C #8C2838 #6A8C28 #288C7C
split-complementary
#4A288C #8C7C28 #388C28
monochromatic
#180D2D #311A5C #4A288C #6336BC #855ED1

Accessibility & contrast

On white

10.64
#4A288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4A288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A288C
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A288C#FFFFFF#000000##FFFFFF
##4A288C1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#364157
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a288c;
/* rgb */ color: rgb(74, 40, 140);
/* oklch */ color: oklch(38.2% 0.156 293.2);
Tailwind
colors: {
  custom: {
    50: '#8365ae',
    500: '#4a288c',
    950: '#000000',
  },
}
SCSS
$custom: #4a288c;
$custom-light: #8365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a288c",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 260.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38245,
    "c": 0.15562,
    "h": 293.2
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#4A288C
secondary
#97B65A
accent
#DF49AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A288C

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

Preview Lab → · Contrast checker → · Palette generator →

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