#4B237B#4B237B

#4B237B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.142 H 300.2°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4B237B
RGBrgb(75, 35, 123)
HSLhsl(267, 56%, 31%)
HSVhsv(267, 72%, 48%)
CMYKcmyk(39%, 71.5%, 0%, 51.8%)
CIE-LABlab(24.09, 37.55, -42.95)
CIE-LCHlch(24.09, 57.05, 311.16°)
OKLaboklab(36.22% 0.0712 -0.1224)
OKLCHoklch(36.22% 0.142 300.2)
XYZxyz(7.0770, 4.1279, 19.1590)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B237B #537B23
analogous
#23277B #4B237B #77237B
triadic
#4B237B #7B4B23 #237B4B
tetradic
#4B237B #7B2327 #537B23 #237B77
square
#4B237B #7B2327 #537B23 #237B77
split-complementary
#4B237B #7B7723 #277B23
monochromatic
#11081C #2E154B #4B237B #6831AB #864CCC

Accessibility & contrast

On white

11.50
#4B237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4B237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B237B
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B237B#FFFFFF#000000##FFFFFF
##4B237B1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#40384C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b237b;
/* rgb */ color: rgb(75, 35, 123);
/* oklch */ color: oklch(36.2% 0.142 300.2);
Tailwind
colors: {
  custom: {
    50: '#8261a2',
    500: '#4b237b',
    950: '#000000',
  },
}
SCSS
$custom: #4b237b;
$custom-light: #8261a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b237b",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 267.273,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36216,
    "c": 0.14161,
    "h": 300.2
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

primary
#4B237B
secondary
#81AE4C
accent
#DF499B
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B237B

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

Preview Lab → · Contrast checker → · Palette generator →

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