#4F30AB#4F30AB

#4F30AB is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.184 H 287.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#4F30AB
RGBrgb(79, 48, 171)
HSLhsl(255, 56%, 43%)
HSVhsv(255, 72%, 67%)
CMYKcmyk(53.8%, 71.9%, 0%, 32.9%)
CIE-LABlab(31.15, 44.99, -60.99)
CIE-LCHlch(31.15, 75.79, 306.42°)
OKLaboklab(42.63% 0.055 -0.1753)
OKLCHoklch(42.63% 0.184 287.4)
XYZxyz(11.6299, 6.7159, 39.2037)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F30AB #8CAB30
analogous
#304EAB #4F30AB #8C30AB
triadic
#4F30AB #AB4F30 #30AB4F
tetradic
#4F30AB #AB304E #8CAB30 #30AB8C
square
#4F30AB #AB304E #8CAB30 #30AB8C
split-complementary
#4F30AB #AB8C30 #4EAB30
monochromatic
#23154B #39237B #4F30AB #6C4CCD #937BDA

Accessibility & contrast

On white

8.96
#4F30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4F30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F30AB
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F30AB#FFFFFF#000000##FFFFFF
##4F30AB1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#2A516A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f30ab;
/* rgb */ color: rgb(79, 48, 171);
/* oklch */ color: oklch(42.6% 0.184 287.4);
Tailwind
colors: {
  custom: {
    50: '#8a6bc5',
    500: '#4f30ab',
    950: '#000000',
  },
}
SCSS
$custom: #4f30ab;
$custom-light: #8a6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f30ab",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 255.122,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42626,
    "c": 0.18374,
    "h": 287.4
  },
  "luminance": 0.06716
}

Semantic roles & 50–950 ramp

primary
#4F30AB
secondary
#AFC374
accent
#DF48B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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