#4C30B8#4C30B8

#4C30B8 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.200 H 283.8°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4C30B8
RGBrgb(76, 48, 184)
HSLhsl(252, 59%, 45%)
HSVhsv(252, 74%, 72%)
CMYKcmyk(58.7%, 73.9%, 0%, 27.8%)
CIE-LABlab(32.06, 48.39, -67.26)
CIE-LCHlch(32.06, 82.86, 305.73°)
OKLaboklab(43.56% 0.0477 -0.1938)
OKLCHoklch(43.56% 0.2 283.8)
XYZxyz(12.6865, 7.1103, 46.0420)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C30B8 #9CB830
analogous
#3058B8 #4C30B8 #9030B8
triadic
#4C30B8 #B84C30 #30B84C
tetradic
#4C30B8 #B83058 #9CB830 #30B890
square
#4C30B8 #B83058 #9CB830 #30B890
split-complementary
#4C30B8 #B89030 #58B830
monochromatic
#241757 #382387 #4C30B8 #6D53D2 #9684DF

Accessibility & contrast

On white

8.67
#4C30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4C30B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C30B8
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C30B8#FFFFFF#000000##FFFFFF
##4C30B81.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#095671
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c30b8;
/* rgb */ color: rgb(76, 48, 184);
/* oklch */ color: oklch(43.6% 0.200 283.8);
Tailwind
colors: {
  custom: {
    50: '#8a6cce',
    500: '#4c30b8',
    950: '#000000',
  },
}
SCSS
$custom: #4c30b8;
$custom-light: #8a6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c30b8",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 252.353,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43562,
    "c": 0.19957,
    "h": 283.8
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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