#4A308E#4A308E

#4A308E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.148 H 290.8°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4A308E
RGBrgb(74, 48, 142)
HSLhsl(257, 49%, 37%)
HSVhsv(257, 66%, 56%)
CMYKcmyk(47.9%, 66.2%, 0%, 44.3%)
CIE-LABlab(28.17, 35.47, -48.22)
CIE-LCHlch(28.17, 59.86, 306.33°)
OKLaboklab(39.61% 0.0525 -0.138)
OKLCHoklch(39.61% 0.148 290.8)
XYZxyz(8.7621, 5.5224, 26.1902)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A308E #748E30
analogous
#30458E #4A308E #79308E
triadic
#4A308E #8E4A30 #308E4A
tetradic
#4A308E #8E3045 #748E30 #308E79
square
#4A308E #8E3045 #748E30 #308E79
split-complementary
#4A308E #8E7930 #458E30
monochromatic
#1A1133 #322160 #4A308E #623FBC #866BCD

Accessibility & contrast

On white

9.98
#4A308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4A308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A308E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A308E#FFFFFF#000000##FFFFFF
##4A308E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#35465A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4a308e;
/* rgb */ color: rgb(74, 48, 142);
/* oklch */ color: oklch(39.6% 0.148 290.8);
Tailwind
colors: {
  custom: {
    50: '#836ab0',
    500: '#4a308e',
    950: '#000000',
  },
}
SCSS
$custom: #4a308e;
$custom-light: #836ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a308e",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 256.596,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39606,
    "c": 0.14763,
    "h": 290.8
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#4A308E
secondary
#9FB465
accent
#D94FB3
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A308E

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

Preview Lab → · Contrast checker → · Palette generator →

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