#4D30B2#4D30B2

#4D30B2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.192 H 285.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4D30B2
RGBrgb(77, 48, 178)
HSLhsl(253, 58%, 44%)
HSVhsv(253, 73%, 70%)
CMYKcmyk(56.7%, 73%, 0%, 30.2%)
CIE-LABlab(31.59, 46.75, -64.46)
CIE-LCHlch(31.59, 79.63, 305.95°)
OKLaboklab(43.09% 0.0506 -0.1855)
OKLCHoklch(43.09% 0.192 285.2)
XYZxyz(12.1510, 6.9053, 42.8034)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30B2 #95B230
analogous
#3054B2 #4D30B2 #8E30B2
triadic
#4D30B2 #B24D30 #30B24D
tetradic
#4D30B2 #B23054 #95B230 #30B28E
square
#4D30B2 #B23054 #95B230 #30B28E
split-complementary
#4D30B2 #B28E30 #54B230
monochromatic
#231652 #382382 #4D30B2 #6C50D0 #9480DD

Accessibility & contrast

On white

8.82
#4D30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4D30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30B2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30B2#FFFFFF#000000##FFFFFF
##4D30B21.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#1C536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d30b2;
/* rgb */ color: rgb(77, 48, 178);
/* oklch */ color: oklch(43.1% 0.192 285.2);
Tailwind
colors: {
  custom: {
    50: '#8a6bca',
    500: '#4d30b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d30b2;
$custom-light: #8a6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30b2",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 253.385,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43085,
    "c": 0.19232,
    "h": 285.2
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#4D30B2
secondary
#B4C678
accent
#E147BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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