#4B237E#4B237E

#4B237E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.145 H 299.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4B237E
RGBrgb(75, 35, 126)
HSLhsl(266, 57%, 32%)
HSVhsv(266, 72%, 49%)
CMYKcmyk(40.5%, 72.2%, 0%, 50.6%)
CIE-LABlab(24.34, 38.36, -44.45)
CIE-LCHlch(24.34, 58.72, 310.79°)
OKLaboklab(36.47% 0.0707 -0.1268)
OKLCHoklch(36.47% 0.145 299.1)
XYZxyz(7.2676, 4.2042, 20.1632)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B237E #567E23
analogous
#23287E #4B237E #79237E
triadic
#4B237E #7E4B23 #237E4B
tetradic
#4B237E #7E2328 #567E23 #237E79
square
#4B237E #7E2328 #567E23 #237E79
split-complementary
#4B237E #7E7923 #287E23
monochromatic
#12081E #2E164E #4B237E #6830AE #864ECE

Accessibility & contrast

On white

11.41
#4B237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4B237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B237E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B237E#FFFFFF#000000##FFFFFF
##4B237E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#3F394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b237e;
/* rgb */ color: rgb(75, 35, 126);
/* oklch */ color: oklch(36.5% 0.145 299.1);
Tailwind
colors: {
  custom: {
    50: '#8261a4',
    500: '#4b237e',
    950: '#000000',
  },
}
SCSS
$custom: #4b237e;
$custom-light: #8261a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b237e",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 266.374,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36468,
    "c": 0.1452,
    "h": 299.1
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#4B237E
secondary
#84B04C
accent
#E0489D
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B237E

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

Preview Lab → · Contrast checker → · Palette generator →

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