#4D30B8#4D30B8

#4D30B8 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.6% C 0.199 H 284.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4D30B8
RGBrgb(77, 48, 184)
HSLhsl(253, 59%, 45%)
HSVhsv(253, 74%, 72%)
CMYKcmyk(58.2%, 73.9%, 0%, 27.8%)
CIE-LABlab(32.15, 48.52, -67.10)
CIE-LCHlch(32.15, 82.81, 305.87°)
OKLaboklab(43.65% 0.0492 -0.1933)
OKLCHoklch(43.65% 0.199 284.3)
XYZxyz(12.7666, 7.1516, 46.0458)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30B8 #9BB830
analogous
#3057B8 #4D30B8 #9130B8
triadic
#4D30B8 #B84D30 #30B84D
tetradic
#4D30B8 #B83057 #9BB830 #30B891
square
#4D30B8 #B83057 #9BB830 #30B891
split-complementary
#4D30B8 #B89130 #57B830
monochromatic
#241757 #392387 #4D30B8 #6E53D2 #9784DF

Accessibility & contrast

On white

8.64
#4D30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4D30B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30B8
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30B8#FFFFFF#000000##FFFFFF
##4D30B81.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#105671
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d30b8;
/* rgb */ color: rgb(77, 48, 184);
/* oklch */ color: oklch(43.6% 0.199 284.3);
Tailwind
colors: {
  custom: {
    50: '#8b6cce',
    500: '#4d30b8',
    950: '#000000',
  },
}
SCSS
$custom: #4d30b8;
$custom-light: #8b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30b8",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 252.794,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4365,
    "c": 0.19945,
    "h": 284.3
  },
  "luminance": 0.07152
}

Semantic roles & 50–950 ramp

primary
#4D30B8
secondary
#B8C87C
accent
#E246C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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