#4C308E#4C308E

#4C308E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.148 H 292.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4C308E
RGBrgb(76, 48, 142)
HSLhsl(258, 49%, 37%)
HSVhsv(258, 66%, 56%)
CMYKcmyk(46.5%, 66.2%, 0%, 44.3%)
CIE-LABlab(28.39, 35.88, -47.86)
CIE-LCHlch(28.39, 59.82, 306.86°)
OKLaboklab(39.81% 0.0554 -0.1369)
OKLCHoklch(39.81% 0.148 292)
XYZxyz(8.9186, 5.6031, 26.1975)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C308E #728E30
analogous
#30438E #4C308E #7B308E
triadic
#4C308E #8E4C30 #308E4C
tetradic
#4C308E #8E3043 #728E30 #308E7B
square
#4C308E #8E3043 #728E30 #308E7B
split-complementary
#4C308E #8E7B30 #438E30
monochromatic
#1B1133 #342160 #4C308E #643FBC #886BCD

Accessibility & contrast

On white

9.90
#4C308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4C308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C308E
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C308E#FFFFFF#000000##FFFFFF
##4C308E1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#38465A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c308e;
/* rgb */ color: rgb(76, 48, 142);
/* oklch */ color: oklch(39.8% 0.148 292.0);
Tailwind
colors: {
  custom: {
    50: '#846ab0',
    500: '#4c308e',
    950: '#000000',
  },
}
SCSS
$custom: #4c308e;
$custom-light: #846ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c308e",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 257.872,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39811,
    "c": 0.14765,
    "h": 292
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#4C308E
secondary
#9DB465
accent
#D94FB0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C308E

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

Preview Lab → · Contrast checker → · Palette generator →

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