#4D188B#4D188B

#4D188B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.172 H 297.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4D188B
RGBrgb(77, 24, 139)
HSLhsl(268, 71%, 32%)
HSVhsv(268, 83%, 55%)
CMYKcmyk(44.6%, 82.7%, 0%, 45.5%)
CIE-LABlab(23.98, 47.20, -53.18)
CIE-LCHlch(23.98, 71.11, 311.59°)
OKLaboklab(36.64% 0.0804 -0.1523)
OKLCHoklch(36.64% 0.172 297.8)
XYZxyz(8.0462, 4.0950, 24.7876)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D188B #568B18
analogous
#181D8B #4D188B #87188B
triadic
#4D188B #8B4D18 #188B4D
tetradic
#4D188B #8B181D #568B18 #188B87
square
#4D188B #8B181D #568B18 #188B87
split-complementary
#4D188B #8B8718 #1D8B18
monochromatic
#130623 #300F57 #4D188B #6A21BF #883FDE

Accessibility & contrast

On white

11.54
#4D188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D188B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D188B#FFFFFF#000000##FFFFFF
##4D188B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#3D3952
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d188b;
/* rgb */ color: rgb(77, 24, 139);
/* oklch */ color: oklch(36.6% 0.172 297.8);
Tailwind
colors: {
  custom: {
    50: '#865dae',
    500: '#4d188b',
    950: '#000000',
  },
}
SCSS
$custom: #4d188b;
$custom-light: #865dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d188b",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 267.652,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36636,
    "c": 0.17226,
    "h": 297.8
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#4D188B
secondary
#84BE40
accent
#ED3A9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D188B

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

Preview Lab → · Contrast checker → · Palette generator →

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