#4F34BB#4F34BB

#4F34BB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.199 H 284.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#4F34BB
RGBrgb(79, 52, 187)
HSLhsl(252, 56%, 47%)
HSVhsv(252, 72%, 73%)
CMYKcmyk(57.8%, 72.2%, 0%, 26.7%)
CIE-LABlab(33.36, 47.59, -66.88)
CIE-LCHlch(33.36, 82.08, 305.43°)
OKLaboklab(44.64% 0.0483 -0.1926)
OKLCHoklch(44.64% 0.199 284.1)
XYZxyz(13.4193, 7.7053, 47.7842)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F34BB #A0BB34
analogous
#345DBB #4F34BB #9334BB
triadic
#4F34BB #BB4F34 #34BB4F
tetradic
#4F34BB #BB345D #A0BB34 #34BB93
square
#4F34BB #BB345D #A0BB34 #34BB93
split-complementary
#4F34BB #BB9334 #5DBB34
monochromatic
#27195B #3B278B #4F34BB #735BD1 #9C8BDF

Accessibility & contrast

On white

8.26
#4F34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4F34BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F34BB
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F34BB#FFFFFF#000000##FFFFFF
##4F34BB1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#135974
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4f34bb;
/* rgb */ color: rgb(79, 52, 187);
/* oklch */ color: oklch(44.6% 0.199 284.1);
Tailwind
colors: {
  custom: {
    50: '#8c6ed1',
    500: '#4f34bb',
    950: '#000000',
  },
}
SCSS
$custom: #4f34bb;
$custom-light: #8c6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f34bb",
  "rgb": {
    "r": 79,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 252,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44638,
    "c": 0.19858,
    "h": 284.1
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#4F34BB
secondary
#BBC982
accent
#E048C1
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4F34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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