#4F30A2#4F30A2

#4F30A2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.173 H 289.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4F30A2
RGBrgb(79, 48, 162)
HSLhsl(256, 54%, 41%)
HSVhsv(256, 70%, 64%)
CMYKcmyk(51.2%, 70.4%, 0%, 36.5%)
CIE-LABlab(30.36, 42.35, -56.86)
CIE-LCHlch(30.36, 70.90, 306.68°)
OKLaboklab(41.82% 0.0568 -0.1632)
OKLCHoklch(41.82% 0.173 289.2)
XYZxyz(10.8011, 6.3843, 34.8386)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F30A2 #83A230
analogous
#304AA2 #4F30A2 #8830A2
triadic
#4F30A2 #A24F30 #30A24F
tetradic
#4F30A2 #A2304A #83A230 #30A288
square
#4F30A2 #A2304A #83A230 #30A288
split-complementary
#4F30A2 #A28830 #4AA230
monochromatic
#211444 #382273 #4F30A2 #6A47C8 #9076D6

Accessibility & contrast

On white

9.22
#4F30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4F30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F30A2
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F30A2#FFFFFF#000000##FFFFFF
##4F30A21.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#324D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f30a2;
/* rgb */ color: rgb(79, 48, 162);
/* oklch */ color: oklch(41.8% 0.173 289.2);
Tailwind
colors: {
  custom: {
    50: '#886bbe',
    500: '#4f30a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f30a2;
$custom-light: #886bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4f30a2",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 256.316,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41821,
    "c": 0.17279,
    "h": 289.2
  },
  "luminance": 0.06385
}

Semantic roles & 50–950 ramp

primary
#4F30A2
secondary
#A9BE6F
accent
#DE4AB6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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