#4A248B#4A248B

#4A248B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.159 H 294.3°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4A248B
RGBrgb(74, 36, 139)
HSLhsl(262, 59%, 34%)
HSVhsv(262, 74%, 55%)
CMYKcmyk(46.8%, 74.1%, 0%, 45.5%)
CIE-LABlab(25.51, 41.25, -50.70)
CIE-LCHlch(25.51, 65.36, 309.13°)
OKLaboklab(37.62% 0.0654 -0.1452)
OKLCHoklch(37.62% 0.159 294.3)
XYZxyz(8.1138, 4.5814, 24.8779)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A248B #658B24
analogous
#24328B #4A248B #7E248B
triadic
#4A248B #8B4A24 #248B4A
tetradic
#4A248B #8B2432 #658B24 #248B7E
square
#4A248B #8B2432 #658B24 #248B7E
split-complementary
#4A248B #8B7E24 #328B24
monochromatic
#160B2A #30175A #4A248B #6431BC #8456D3

Accessibility & contrast

On white

10.96
#4A248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A248B
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A248B#FFFFFF#000000##FFFFFF
##4A248B1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#373F55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a248b;
/* rgb */ color: rgb(74, 36, 139);
/* oklch */ color: oklch(37.6% 0.159 294.3);
Tailwind
colors: {
  custom: {
    50: '#8362ae',
    500: '#4a248b',
    950: '#000000',
  },
}
SCSS
$custom: #4a248b;
$custom-light: #8362ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a248b",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 262.136,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.15931,
    "h": 294.3
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#4A248B
secondary
#93B753
accent
#E246A8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A248B

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

Preview Lab → · Contrast checker → · Palette generator →

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