#4F188D#4F188D

#4F188D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.175 H 298.4°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4F188D
RGBrgb(79, 24, 141)
HSLhsl(268, 71%, 32%)
HSVhsv(268, 83%, 55%)
CMYKcmyk(44%, 83%, 0%, 44.7%)
CIE-LABlab(24.44, 48.01, -53.66)
CIE-LCHlch(24.44, 72.00, 311.82°)
OKLaboklab(37.07% 0.0829 -0.1537)
OKLCHoklch(37.07% 0.175 298.4)
XYZxyz(8.3576, 4.2385, 25.5719)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F188D #568D18
analogous
#181C8D #4F188D #89188D
triadic
#4F188D #8D4F18 #188D4F
tetradic
#4F188D #8D181C #568D18 #188D89
square
#4F188D #8D181C #568D18 #188D89
split-complementary
#4F188D #8D8918 #1C8D18
monochromatic
#140624 #320F59 #4F188D #6C21C1 #8B41DF

Accessibility & contrast

On white

11.36
#4F188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F188D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F188D#FFFFFF#000000##FFFFFF
##4F188D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3F3A54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f188d;
/* rgb */ color: rgb(79, 24, 141);
/* oklch */ color: oklch(37.1% 0.175 298.4);
Tailwind
colors: {
  custom: {
    50: '#875daf',
    500: '#4f188d',
    950: '#000000',
  },
}
SCSS
$custom: #4f188d;
$custom-light: #875daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f188d",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 268.205,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37073,
    "c": 0.17461,
    "h": 298.4
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#4F188D
secondary
#84BF42
accent
#EE3A99
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F188D

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

Preview Lab → · Contrast checker → · Palette generator →

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