#4F188B#4F188B

#4F188B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.173 H 299.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4F188B
RGBrgb(79, 24, 139)
HSLhsl(269, 71%, 32%)
HSVhsv(269, 83%, 55%)
CMYKcmyk(43.2%, 82.7%, 0%, 45.5%)
CIE-LABlab(24.26, 47.51, -52.73)
CIE-LCHlch(24.26, 70.97, 312.02°)
OKLaboklab(36.89% 0.0836 -0.1509)
OKLCHoklch(36.89% 0.173 299)
XYZxyz(8.2101, 4.1795, 24.7953)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F188B #548B18
analogous
#181A8B #4F188B #89188B
triadic
#4F188B #8B4F18 #188B4F
tetradic
#4F188B #8B181A #548B18 #188B89
square
#4F188B #8B181A #548B18 #188B89
split-complementary
#4F188B #8B8918 #1A8B18
monochromatic
#140623 #310F57 #4F188B #6D21BF #8B3FDE

Accessibility & contrast

On white

11.44
#4F188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F188B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F188B#FFFFFF#000000##FFFFFF
##4F188B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#403952
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f188b;
/* rgb */ color: rgb(79, 24, 139);
/* oklch */ color: oklch(36.9% 0.173 299.0);
Tailwind
colors: {
  custom: {
    50: '#875dae',
    500: '#4f188b',
    950: '#000000',
  },
}
SCSS
$custom: #4f188b;
$custom-light: #875dae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f188b",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 268.696,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36885,
    "c": 0.17251,
    "h": 299
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#4F188B
secondary
#82BE40
accent
#ED3A98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F188B

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

Preview Lab → · Contrast checker → · Palette generator →

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