#4A34B8#4A34B8

#4A34B8 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.196 H 282.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4A34B8
RGBrgb(74, 52, 184)
HSLhsl(250, 56%, 46%)
HSVhsv(250, 72%, 72%)
CMYKcmyk(59.8%, 71.7%, 0%, 27.8%)
CIE-LABlab(32.64, 45.98, -66.31)
CIE-LCHlch(32.64, 80.69, 304.74°)
OKLaboklab(43.93% 0.0419 -0.1911)
OKLCHoklch(43.93% 0.196 282.4)
XYZxyz(12.7011, 7.3717, 46.0917)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A34B8 #A2B834
analogous
#3460B8 #4A34B8 #8C34B8
triadic
#4A34B8 #B84A34 #34B84A
tetradic
#4A34B8 #B83460 #A2B834 #34B88C
square
#4A34B8 #B83460 #A2B834 #34B88C
split-complementary
#4A34B8 #B88C34 #60B834
monochromatic
#241959 #372788 #4A34B8 #6D59D0 #9789DE

Accessibility & contrast

On white

8.49
#4A34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A34B8
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A34B8#FFFFFF#000000##FFFFFF
##4A34B81.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a34b8;
/* rgb */ color: rgb(74, 52, 184);
/* oklch */ color: oklch(43.9% 0.196 282.4);
Tailwind
colors: {
  custom: {
    50: '#896ece',
    500: '#4a34b8',
    950: '#000000',
  },
}
SCSS
$custom: #4a34b8;
$custom-light: #896ece;
$custom-dark: #000000;
JSON
{
  "hex": "#4a34b8",
  "rgb": {
    "r": 74,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 250,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4393,
    "c": 0.19562,
    "h": 282.4
  },
  "luminance": 0.07373
}

Semantic roles & 50–950 ramp

primary
#4A34B8
secondary
#BCC880
accent
#DF49C6
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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