#4A337E#4A337E

#4A337E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.8% C 0.122 H 294.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4A337E
RGBrgb(74, 51, 126)
HSLhsl(258, 42%, 35%)
HSVhsv(258, 60%, 49%)
CMYKcmyk(41.3%, 59.5%, 0%, 50.6%)
CIE-LABlab(27.65, 28.86, -39.09)
CIE-LCHlch(27.65, 48.59, 306.44°)
OKLaboklab(38.85% 0.0498 -0.1111)
OKLCHoklch(38.85% 0.122 294.1)
XYZxyz(7.7728, 5.3297, 20.3538)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A337E #677E33
analogous
#33427E #4A337E #70337E
triadic
#4A337E #7E4A33 #337E4A
tetradic
#4A337E #7E3342 #677E33 #337E70
square
#4A337E #7E3342 #677E33 #337E70
split-complementary
#4A337E #7E7033 #427E33
monochromatic
#171027 #302152 #4A337E #6445AA #8469C2

Accessibility & contrast

On white

10.16
#4A337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4A337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A337E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A337E#FFFFFF#000000##FFFFFF
##4A337E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084280
Deuteranopia (green-blind)
#12407C
Tritanopia (blue-blind)
#3D4353
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a337e;
/* rgb */ color: rgb(74, 51, 126);
/* oklch */ color: oklch(38.8% 0.122 294.1);
Tailwind
colors: {
  custom: {
    50: '#806ba4',
    500: '#4a337e',
    950: '#000000',
  },
}
SCSS
$custom: #4a337e;
$custom-light: #806ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a337e",
  "rgb": {
    "r": 74,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 258.4,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.1218,
    "h": 294.1
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#4A337E
secondary
#94AA63
accent
#D256AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #4A337E

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

Preview Lab → · Contrast checker → · Palette generator →

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