#4A239F#4A239F

#4A239F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.184 H 289.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#4A239F
RGBrgb(74, 35, 159)
HSLhsl(259, 64%, 38%)
HSVhsv(259, 78%, 62%)
CMYKcmyk(53.5%, 78%, 0%, 37.6%)
CIE-LABlab(27.19, 47.35, -60.26)
CIE-LCHlch(27.19, 76.64, 308.16°)
OKLaboklab(39.37% 0.061 -0.1733)
OKLCHoklch(39.37% 0.184 289.4)
XYZxyz(9.6813, 5.1607, 33.2802)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A239F #789F23
analogous
#233A9F #4A239F #88239F
triadic
#4A239F #9F4A23 #239F4A
tetradic
#4A239F #9F233A #789F23 #239F88
square
#4A239F #9F233A #789F23 #239F88
split-complementary
#4A239F #9F8823 #3A9F23
monochromatic
#1B0D3B #33186D #4A239F #612ED1 #8760DC

Accessibility & contrast

On white

10.33
#4A239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A239F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A239F#FFFFFF#000000##FFFFFF
##4A239F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#2A4660
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a239f;
/* rgb */ color: rgb(74, 35, 159);
/* oklch */ color: oklch(39.4% 0.184 289.4);
Tailwind
colors: {
  custom: {
    50: '#8663bc',
    500: '#4a239f',
    950: '#000000',
  },
}
SCSS
$custom: #4a239f;
$custom-light: #8663bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a239f",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 258.871,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39368,
    "c": 0.18369,
    "h": 289.4
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#4A239F
secondary
#A2C15D
accent
#E741B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A239F

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

Preview Lab → · Contrast checker → · Palette generator →

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