#4730AB#4730AB

#4730AB is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.185 H 283.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4730AB
RGBrgb(71, 48, 171)
HSLhsl(251, 56%, 43%)
HSVhsv(251, 72%, 67%)
CMYKcmyk(58.5%, 71.9%, 0%, 32.9%)
CIE-LABlab(30.38, 43.76, -62.28)
CIE-LCHlch(30.38, 76.11, 305.10°)
OKLaboklab(41.89% 0.0434 -0.1793)
OKLCHoklch(41.89% 0.185 283.6)
XYZxyz(11.0039, 6.3931, 39.1743)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4730AB #94AB30
analogous
#3056AB #4730AB #8530AB
triadic
#4730AB #AB4730 #30AB47
tetradic
#4730AB #AB3056 #94AB30 #30AB85
square
#4730AB #AB3056 #94AB30 #30AB85
split-complementary
#4730AB #AB8530 #56AB30
monochromatic
#1F154B #33237B #4730AB #644CCD #8D7BDA

Accessibility & contrast

On white

9.22
#4730AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4730AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4730AB
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4730AB#FFFFFF#000000##FFFFFF
##4730AB1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#0D516A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4730ab;
/* rgb */ color: rgb(71, 48, 171);
/* oklch */ color: oklch(41.9% 0.185 283.6);
Tailwind
colors: {
  custom: {
    50: '#856bc5',
    500: '#4730ab',
    950: '#000000',
  },
}
SCSS
$custom: #4730ab;
$custom-light: #856bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4730ab",
  "rgb": {
    "r": 71,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 251.22,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41894,
    "c": 0.18452,
    "h": 283.6
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#4730AB
secondary
#B4C374
accent
#DF48C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4730AB

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

Preview Lab → · Contrast checker → · Palette generator →

#4730AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva