#4A237A#4A237A

#4A237A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.140 H 299.9°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#4A237A
RGBrgb(74, 35, 122)
HSLhsl(267, 55%, 31%)
HSVhsv(267, 71%, 48%)
CMYKcmyk(39.3%, 71.3%, 0%, 52.2%)
CIE-LABlab(23.88, 37.06, -42.67)
CIE-LCHlch(23.88, 56.52, 310.98°)
OKLaboklab(36.01% 0.0698 -0.1216)
OKLCHoklch(36.01% 0.14 299.9)
XYZxyz(6.9371, 4.0630, 18.8273)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A237A #537A23
analogous
#23277A #4A237A #75237A
triadic
#4A237A #7A4A23 #237A4A
tetradic
#4A237A #7A2327 #537A23 #237A75
square
#4A237A #7A2327 #537A23 #237A75
split-complementary
#4A237A #7A7523 #277A23
monochromatic
#10081B #2D154A #4A237A #6731AA #854CCC

Accessibility & contrast

On white

11.59
#4A237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A237A
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A237A#FFFFFF#000000##FFFFFF
##4A237A1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#3F384B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a237a;
/* rgb */ color: rgb(74, 35, 122);
/* oklch */ color: oklch(36.0% 0.140 299.9);
Tailwind
colors: {
  custom: {
    50: '#8161a1',
    500: '#4a237a',
    950: '#000000',
  },
}
SCSS
$custom: #4a237a;
$custom-light: #8161a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a237a",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 266.897,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36011,
    "c": 0.14025,
    "h": 299.9
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#4A237A
secondary
#81AD4C
accent
#DF499C
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A237A

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

Preview Lab → · Contrast checker → · Palette generator →

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