#4F1F88#4F1F88

#4F1F88 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.162 H 299.0°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4F1F88
RGBrgb(79, 31, 136)
HSLhsl(267, 63%, 33%)
HSVhsv(267, 77%, 53%)
CMYKcmyk(41.9%, 77.2%, 0%, 46.7%)
CIE-LABlab(25.01, 43.77, -49.61)
CIE-LCHlch(25.01, 66.16, 311.42°)
OKLaboklab(37.33% 0.0786 -0.1418)
OKLCHoklch(37.33% 0.162 299)
XYZxyz(8.1572, 4.4197, 23.7111)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F88 #58881F
analogous
#1F2388 #4F1F88 #841F88
triadic
#4F1F88 #884F1F #1F884F
tetradic
#4F1F88 #881F23 #58881F #1F8884
square
#4F1F88 #881F23 #58881F #1F8884
split-complementary
#4F1F88 #88841F #23881F
monochromatic
#150824 #321456 #4F1F88 #6C2ABA #8B4BD6

Accessibility & contrast

On white

11.15
#4F1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F88
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F88#FFFFFF#000000##FFFFFF
##4F1F881.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#413A52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1f88;
/* rgb */ color: rgb(79, 31, 136);
/* oklch */ color: oklch(37.3% 0.162 299.0);
Tailwind
colors: {
  custom: {
    50: '#8660ac',
    500: '#4f1f88',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f88;
$custom-light: #8660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f88",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 267.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37329,
    "c": 0.16215,
    "h": 299
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#4F1F88
secondary
#86B94A
accent
#E6429B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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