#4F30B5#4F30B5

#4F30B5 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.196 H 285.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4F30B5
RGBrgb(79, 48, 181)
HSLhsl(254, 58%, 45%)
HSVhsv(254, 73%, 71%)
CMYKcmyk(56.4%, 73.5%, 0%, 29%)
CIE-LABlab(32.06, 47.92, -65.47)
CIE-LCHlch(32.06, 81.13, 306.21°)
OKLaboklab(43.55% 0.0528 -0.1884)
OKLCHoklch(43.55% 0.196 285.7)
XYZxyz(12.6194, 7.1116, 44.4148)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F30B5 #96B530
analogous
#3053B5 #4F30B5 #9230B5
triadic
#4F30B5 #B54F30 #30B54F
tetradic
#4F30B5 #B53053 #96B530 #30B592
square
#4F30B5 #B53053 #96B530 #30B592
split-complementary
#4F30B5 #B59230 #53B530
monochromatic
#251654 #3A2385 #4F30B5 #6F51D1 #9782DE

Accessibility & contrast

On white

8.67
#4F30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4F30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F30B5
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F30B5#FFFFFF#000000##FFFFFF
##4F30B51.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#1E5470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f30b5;
/* rgb */ color: rgb(79, 48, 181);
/* oklch */ color: oklch(43.5% 0.196 285.7);
Tailwind
colors: {
  custom: {
    50: '#8b6ccc',
    500: '#4f30b5',
    950: '#000000',
  },
}
SCSS
$custom: #4f30b5;
$custom-light: #8b6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f30b5",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 253.985,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43548,
    "c": 0.19569,
    "h": 285.7
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#4F30B5
secondary
#B5C77A
accent
#E146BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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