#4B238F#4B238F

#4B238F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.165 H 293.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4B238F
RGBrgb(75, 35, 143)
HSLhsl(262, 61%, 35%)
HSVhsv(262, 76%, 56%)
CMYKcmyk(47.6%, 75.5%, 0%, 43.9%)
CIE-LABlab(25.81, 43.04, -52.70)
CIE-LCHlch(25.81, 68.04, 309.24°)
OKLaboklab(37.97% 0.067 -0.1511)
OKLCHoklch(37.97% 0.165 293.9)
XYZxyz(8.4592, 4.6808, 26.4391)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B238F #678F23
analogous
#23318F #4B238F #81238F
triadic
#4B238F #8F4B23 #238F4B
tetradic
#4B238F #8F2331 #678F23 #238F81
square
#4B238F #8F2331 #678F23 #238F81
split-complementary
#4B238F #8F8123 #318F23
monochromatic
#170B2D #31175E #4B238F #652FC0 #8657D6

Accessibility & contrast

On white

10.85
#4B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B238F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B238F#FFFFFF#000000##FFFFFF
##4B238F1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#374057
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b238f;
/* rgb */ color: rgb(75, 35, 143);
/* oklch */ color: oklch(38.0% 0.165 293.9);
Tailwind
colors: {
  custom: {
    50: '#8462b1',
    500: '#4b238f',
    950: '#000000',
  },
}
SCSS
$custom: #4b238f;
$custom-light: #8462b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b238f",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 262.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37967,
    "c": 0.16524,
    "h": 293.9
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#4B238F
secondary
#94BA54
accent
#E444A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4B238F

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

Preview Lab → · Contrast checker → · Palette generator →

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