#4F1FA8#4F1FA8

#4F1FA8 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.197 H 290.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4F1FA8
RGBrgb(79, 31, 168)
HSLhsl(261, 69%, 39%)
HSVhsv(261, 82%, 66%)
CMYKcmyk(53%, 81.5%, 0%, 34.1%)
CIE-LABlab(28.03, 52.24, -64.31)
CIE-LCHlch(28.03, 82.85, 309.09°)
OKLaboklab(40.35% 0.0688 -0.1849)
OKLCHoklch(40.35% 0.197 290.4)
XYZxyz(10.7803, 5.4689, 37.5258)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1FA8 #78A81F
analogous
#1F34A8 #4F1FA8 #941FA8
triadic
#4F1FA8 #A84F1F #1FA84F
tetradic
#4F1FA8 #A81F34 #78A81F #1FA894
square
#4F1FA8 #A81F34 #78A81F #1FA894
split-complementary
#4F1FA8 #A8941F #34A81F
monochromatic
#1E0C41 #371574 #4F1FA8 #682CD8 #8D60E2

Accessibility & contrast

On white

10.03
#4F1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1FA8
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1FA8#FFFFFF#000000##FFFFFF
##4F1FA81.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#2E4865
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f1fa8;
/* rgb */ color: rgb(79, 31, 168);
/* oklch */ color: oklch(40.4% 0.197 290.4);
Tailwind
colors: {
  custom: {
    50: '#8b62c3',
    500: '#4f1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #4f1fa8;
$custom-light: #8b62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1fa8",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 261.022,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40352,
    "c": 0.19729,
    "h": 290.4
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

primary
#4F1FA8
secondary
#A1C65D
accent
#EC3CAE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0513
muted
#7E7A82

Preview Lab

Preview with #4F1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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