#4F35B2#4F35B2

#4F35B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.187 H 285.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#4F35B2
RGBrgb(79, 53, 178)
HSLhsl(252, 54%, 45%)
HSVhsv(252, 70%, 70%)
CMYKcmyk(55.6%, 70.2%, 0%, 30.2%)
CIE-LABlab(32.75, 44.35, -62.55)
CIE-LCHlch(32.75, 76.68, 305.34°)
OKLaboklab(43.96% 0.0493 -0.1799)
OKLCHoklch(43.96% 0.187 285.3)
XYZxyz(12.5310, 7.4221, 42.8832)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F35B2 #98B235
analogous
#3559B2 #4F35B2 #8D35B2
triadic
#4F35B2 #B24F35 #35B24F
tetradic
#4F35B2 #B23559 #98B235 #35B28D
square
#4F35B2 #B23559 #98B235 #35B28D
split-complementary
#4F35B2 #B28D35 #59B235
monochromatic
#251954 #3A2783 #4F35B2 #7057CD #9886DB

Accessibility & contrast

On white

8.45
#4F35B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4F35B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F35B2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F35B2#FFFFFF#000000##FFFFFF
##4F35B21.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f35b2;
/* rgb */ color: rgb(79, 53, 178);
/* oklch */ color: oklch(44.0% 0.187 285.3);
Tailwind
colors: {
  custom: {
    50: '#8b6fca',
    500: '#4f35b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f35b2;
$custom-light: #8b6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f35b2",
  "rgb": {
    "r": 79,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 252.48,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.18655,
    "h": 285.3
  },
  "luminance": 0.07423
}

Semantic roles & 50–950 ramp

primary
#4F35B2
secondary
#B6C57E
accent
#DD4ABF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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