#4B188F#4B188F

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

Color values

HEX#4B188F
RGBrgb(75, 24, 143)
HSLhsl(266, 71%, 33%)
HSVhsv(266, 83%, 56%)
CMYKcmyk(47.6%, 83.2%, 0%, 43.9%)
CIE-LABlab(24.10, 47.94, -55.49)
CIE-LCHlch(24.10, 73.33, 310.83°)
OKLaboklab(36.78% 0.0759 -0.1591)
OKLCHoklch(36.78% 0.176 295.5)
XYZxyz(8.1849, 4.1321, 26.3476)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B188F #5C8F18
analogous
#18218F #4B188F #86188F
triadic
#4B188F #8F4B18 #188F4B
tetradic
#4B188F #8F1821 #5C8F18 #188F86
square
#4B188F #8F1821 #5C8F18 #188F86
split-complementary
#4B188F #8F8618 #218F18
monochromatic
#140626 #300F5B #4B188F #6621C3 #8542DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B188F#FFFFFF#000000##FFFFFF
##4B188F1.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)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#373B55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b188f;
/* rgb */ color: rgb(75, 24, 143);
/* oklch */ color: oklch(36.8% 0.176 295.5);
Tailwind
colors: {
  custom: {
    50: '#855db1',
    500: '#4b188f',
    950: '#000000',
  },
}
SCSS
$custom: #4b188f;
$custom-light: #855db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b188f",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 265.714,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36778,
    "c": 0.1763,
    "h": 295.5
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#4B188F
secondary
#8AC043
accent
#EE3AA1
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4B188F

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

Preview Lab → · Contrast checker → · Palette generator →

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