#4F34B2#4F34B2

#4F34B2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.188 H 285.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#4F34B2
RGBrgb(79, 52, 178)
HSLhsl(253, 55%, 45%)
HSVhsv(253, 71%, 70%)
CMYKcmyk(55.6%, 70.8%, 0%, 30.2%)
CIE-LABlab(32.55, 44.90, -62.88)
CIE-LCHlch(32.55, 77.26, 305.53°)
OKLaboklab(43.81% 0.0502 -0.1809)
OKLCHoklch(43.81% 0.188 285.5)
XYZxyz(12.4859, 7.3319, 42.8681)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34B2 #97B234
analogous
#3458B2 #4F34B2 #8E34B2
triadic
#4F34B2 #B24F34 #34B24F
tetradic
#4F34B2 #B23458 #97B234 #34B28E
square
#4F34B2 #B23458 #97B234 #34B28E
split-complementary
#4F34B2 #B28E34 #58B234
monochromatic
#251853 #3A2683 #4F34B2 #6F56CE #9885DB

Accessibility & contrast

On white

8.51
#4F34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4F34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34B2
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34B2#FFFFFF#000000##FFFFFF
##4F34B21.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#22556F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f34b2;
/* rgb */ color: rgb(79, 52, 178);
/* oklch */ color: oklch(43.8% 0.188 285.5);
Tailwind
colors: {
  custom: {
    50: '#8b6eca',
    500: '#4f34b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f34b2;
$custom-light: #8b6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34b2",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 252.857,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43813,
    "c": 0.1877,
    "h": 285.5
  },
  "luminance": 0.07333
}

Semantic roles & 50–950 ramp

primary
#4F34B2
secondary
#B6C57D
accent
#DE4ABE
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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