#4B237F#4B237F

#4B237F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.146 H 298.8°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4B237F
RGBrgb(75, 35, 127)
HSLhsl(266, 57%, 32%)
HSVhsv(266, 72%, 50%)
CMYKcmyk(40.9%, 72.4%, 0%, 50.2%)
CIE-LABlab(24.42, 38.63, -44.95)
CIE-LCHlch(24.42, 59.27, 310.68°)
OKLaboklab(36.55% 0.0705 -0.1283)
OKLCHoklch(36.55% 0.146 298.8)
XYZxyz(7.3325, 4.2301, 20.5047)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B237F #577F23
analogous
#23297F #4B237F #79237F
triadic
#4B237F #7F4B23 #237F4B
tetradic
#4B237F #7F2329 #577F23 #237F79
square
#4B237F #7F2329 #577F23 #237F79
split-complementary
#4B237F #7F7923 #297F23
monochromatic
#12091F #2F164F #4B237F #6730AF #864ECE

Accessibility & contrast

On white

11.38
#4B237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4B237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B237F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B237F#FFFFFF#000000##FFFFFF
##4B237F1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b237f;
/* rgb */ color: rgb(75, 35, 127);
/* oklch */ color: oklch(36.6% 0.146 298.8);
Tailwind
colors: {
  custom: {
    50: '#8261a5',
    500: '#4b237f',
    950: '#000000',
  },
}
SCSS
$custom: #4b237f;
$custom-light: #8261a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b237f",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 266.087,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36553,
    "c": 0.14639,
    "h": 298.8
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#4B237F
secondary
#85B14C
accent
#E0489E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B237F

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

Preview Lab → · Contrast checker → · Palette generator →

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