#4F188C#4F188C

#4F188C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.174 H 298.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4F188C
RGBrgb(79, 24, 140)
HSLhsl(268, 71%, 32%)
HSVhsv(268, 83%, 55%)
CMYKcmyk(43.6%, 82.9%, 0%, 45.1%)
CIE-LABlab(24.35, 47.76, -53.19)
CIE-LCHlch(24.35, 71.49, 311.92°)
OKLaboklab(36.98% 0.0833 -0.1523)
OKLCHoklch(36.98% 0.174 298.7)
XYZxyz(8.2835, 4.2089, 25.1818)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F188C #558C18
analogous
#181B8C #4F188C #89188C
triadic
#4F188C #8C4F18 #188C4F
tetradic
#4F188C #8C181B #558C18 #188C89
square
#4F188C #8C181B #558C18 #188C89
split-complementary
#4F188C #8C8918 #1B8C18
monochromatic
#140624 #320F58 #4F188C #6C21C0 #8B40DE

Accessibility & contrast

On white

11.40
#4F188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F188C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F188C#FFFFFF#000000##FFFFFF
##4F188C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#403953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f188c;
/* rgb */ color: rgb(79, 24, 140);
/* oklch */ color: oklch(37.0% 0.174 298.7);
Tailwind
colors: {
  custom: {
    50: '#875daf',
    500: '#4f188c',
    950: '#000000',
  },
}
SCSS
$custom: #4f188c;
$custom-light: #875daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f188c",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 268.448,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36979,
    "c": 0.17356,
    "h": 298.7
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#4F188C
secondary
#83BF41
accent
#ED3A99
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F188C

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

Preview Lab → · Contrast checker → · Palette generator →

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