#4B238E#4B238E

#4B238E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.164 H 294.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4B238E
RGBrgb(75, 35, 142)
HSLhsl(262, 60%, 35%)
HSVhsv(262, 75%, 56%)
CMYKcmyk(47.2%, 75.4%, 0%, 44.3%)
CIE-LABlab(25.72, 42.76, -52.22)
CIE-LCHlch(25.72, 67.50, 309.31°)
OKLaboklab(37.88% 0.0672 -0.1497)
OKLCHoklch(37.88% 0.164 294.2)
XYZxyz(8.3838, 4.6507, 26.0419)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B238E #668E23
analogous
#23308E #4B238E #81238E
triadic
#4B238E #8E4B23 #238E4B
tetradic
#4B238E #8E2330 #668E23 #238E81
square
#4B238E #8E2330 #668E23 #238E81
split-complementary
#4B238E #8E8123 #308E23
monochromatic
#170B2C #31175D #4B238E #652FBF #8656D5

Accessibility & contrast

On white

10.88
#4B238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4B238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B238E
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B238E#FFFFFF#000000##FFFFFF
##4B238E1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b238e;
/* rgb */ color: rgb(75, 35, 142);
/* oklch */ color: oklch(37.9% 0.164 294.2);
Tailwind
colors: {
  custom: {
    50: '#8462b0',
    500: '#4b238e',
    950: '#000000',
  },
}
SCSS
$custom: #4b238e;
$custom-light: #8462b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b238e",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 262.43,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37875,
    "c": 0.16407,
    "h": 294.2
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#4B238E
secondary
#93B953
accent
#E444A8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4B238E

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

Preview Lab → · Contrast checker → · Palette generator →

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