#4E30B2#4E30B2

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

Color values

HEX#4E30B2
RGBrgb(78, 48, 178)
HSLhsl(254, 58%, 44%)
HSVhsv(254, 73%, 70%)
CMYKcmyk(56.2%, 73%, 0%, 30.2%)
CIE-LABlab(31.69, 46.90, -64.30)
CIE-LCHlch(31.69, 79.58, 306.11°)
OKLaboklab(43.18% 0.052 -0.185)
OKLCHoklch(43.18% 0.192 285.7)
XYZxyz(12.2323, 6.9473, 42.8072)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30B2 #94B230
analogous
#3053B2 #4E30B2 #8F30B2
triadic
#4E30B2 #B24E30 #30B24E
tetradic
#4E30B2 #B23053 #94B230 #30B28F
square
#4E30B2 #B23053 #94B230 #30B28F
split-complementary
#4E30B2 #B28F30 #53B230
monochromatic
#241652 #392382 #4E30B2 #6D50D0 #9580DD

Accessibility & contrast

On white

8.79
#4E30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4E30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30B2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30B2#FFFFFF#000000##FFFFFF
##4E30B21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#1F536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e30b2;
/* rgb */ color: rgb(78, 48, 178);
/* oklch */ color: oklch(43.2% 0.192 285.7);
Tailwind
colors: {
  custom: {
    50: '#8a6bca',
    500: '#4e30b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e30b2;
$custom-light: #8a6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30b2",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 253.846,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43176,
    "c": 0.19221,
    "h": 285.7
  },
  "luminance": 0.06948
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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