#4A237B#4A237B

#4A237B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.141 H 299.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4A237B
RGBrgb(74, 35, 123)
HSLhsl(267, 56%, 31%)
HSVhsv(267, 72%, 48%)
CMYKcmyk(39.8%, 71.5%, 0%, 51.8%)
CIE-LABlab(23.96, 37.34, -43.17)
CIE-LCHlch(23.96, 57.07, 310.86°)
OKLaboklab(36.1% 0.0697 -0.1231)
OKLCHoklch(36.1% 0.141 299.5)
XYZxyz(6.9993, 4.0879, 19.1553)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A237B #547B23
analogous
#23287B #4A237B #76237B
triadic
#4A237B #7B4A23 #237B4A
tetradic
#4A237B #7B2328 #547B23 #237B76
square
#4A237B #7B2328 #547B23 #237B76
split-complementary
#4A237B #7B7623 #287B23
monochromatic
#11081C #2D154B #4A237B #6731AB #854CCC

Accessibility & contrast

On white

11.55
#4A237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A237B
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A237B#FFFFFF#000000##FFFFFF
##4A237B1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#3F384C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a237b;
/* rgb */ color: rgb(74, 35, 123);
/* oklch */ color: oklch(36.1% 0.141 299.5);
Tailwind
colors: {
  custom: {
    50: '#8161a2',
    500: '#4a237b',
    950: '#000000',
  },
}
SCSS
$custom: #4a237b;
$custom-light: #8161a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a237b",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 266.591,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36095,
    "c": 0.14145,
    "h": 299.5
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#4A237B
secondary
#82AE4C
accent
#DF499C
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A237B

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

Preview Lab → · Contrast checker → · Palette generator →

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