#4A238E#4A238E

#4A238E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.164 H 293.6°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4A238E
RGBrgb(74, 35, 142)
HSLhsl(262, 60%, 35%)
HSVhsv(262, 75%, 56%)
CMYKcmyk(47.9%, 75.4%, 0%, 44.3%)
CIE-LABlab(25.60, 42.59, -52.42)
CIE-LCHlch(25.60, 67.55, 309.09°)
OKLaboklab(37.76% 0.0657 -0.1503)
OKLCHoklch(37.76% 0.164 293.6)
XYZxyz(8.3062, 4.6106, 26.0382)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A238E #678E23
analogous
#23328E #4A238E #80238E
triadic
#4A238E #8E4A23 #238E4A
tetradic
#4A238E #8E2332 #678E23 #238E80
square
#4A238E #8E2332 #678E23 #238E80
split-complementary
#4A238E #8E8023 #328E23
monochromatic
#170B2C #30175D #4A238E #642FBF #8456D5

Accessibility & contrast

On white

10.92
#4A238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A238E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A238E#FFFFFF#000000##FFFFFF
##4A238E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a238e;
/* rgb */ color: rgb(74, 35, 142);
/* oklch */ color: oklch(37.8% 0.164 293.6);
Tailwind
colors: {
  custom: {
    50: '#8462b0',
    500: '#4a238e',
    950: '#000000',
  },
}
SCSS
$custom: #4a238e;
$custom-light: #8462b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a238e",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 261.869,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37764,
    "c": 0.16401,
    "h": 293.6
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#4A238E
secondary
#94B953
accent
#E444A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #4A238E

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

Preview Lab → · Contrast checker → · Palette generator →

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