#4A248E#4A248E

#4A248E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.163 H 293.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4A248E
RGBrgb(74, 36, 142)
HSLhsl(262, 60%, 35%)
HSVhsv(262, 75%, 56%)
CMYKcmyk(47.9%, 74.6%, 0%, 44.3%)
CIE-LABlab(25.77, 42.09, -52.13)
CIE-LCHlch(25.77, 67.00, 308.92°)
OKLaboklab(37.89% 0.0647 -0.1494)
OKLCHoklch(37.89% 0.163 293.4)
XYZxyz(8.3361, 4.6703, 26.0482)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A248E #688E24
analogous
#24338E #4A248E #7F248E
triadic
#4A248E #8E4A24 #248E4A
tetradic
#4A248E #8E2433 #688E24 #248E7F
square
#4A248E #8E2433 #688E24 #248E7F
split-complementary
#4A248E #8E7F24 #338E24
monochromatic
#170B2C #31185D #4A248E #6330BF #8558D5

Accessibility & contrast

On white

10.86
#4A248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4A248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A248E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A248E#FFFFFF#000000##FFFFFF
##4A248E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#364057
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a248e;
/* rgb */ color: rgb(74, 36, 142);
/* oklch */ color: oklch(37.9% 0.163 293.4);
Tailwind
colors: {
  custom: {
    50: '#8363b0',
    500: '#4a248e',
    950: '#000000',
  },
}
SCSS
$custom: #4a248e;
$custom-light: #8363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a248e",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 261.509,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3789,
    "c": 0.16286,
    "h": 293.4
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#4A248E
secondary
#95B955
accent
#E345AA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #4A248E

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

Preview Lab → · Contrast checker → · Palette generator →

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