#4A307F#4A307F

#4A307F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.4% C 0.128 H 294.8°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4A307F
RGBrgb(74, 48, 127)
HSLhsl(260, 45%, 34%)
HSVhsv(260, 62%, 50%)
CMYKcmyk(41.7%, 62.2%, 0%, 50.2%)
CIE-LABlab(27.02, 31.00, -40.74)
CIE-LCHlch(27.02, 51.19, 307.27°)
OKLaboklab(38.41% 0.0537 -0.116)
OKLCHoklch(38.41% 0.128 294.8)
XYZxyz(7.7107, 5.1019, 20.6531)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A307F #657F30
analogous
#303E7F #4A307F #72307F
triadic
#4A307F #7F4A30 #307F4A
tetradic
#4A307F #7F303E #657F30 #307F72
square
#4A307F #7F303E #657F30 #307F72
split-complementary
#4A307F #7F7230 #3E7F30
monochromatic
#160E26 #301F53 #4A307F #6441AB #8465C5

Accessibility & contrast

On white

10.39
#4A307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4A307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A307F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A307F#FFFFFF#000000##FFFFFF
##4A307F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#073F7D
Tritanopia (blue-blind)
#3C4152
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a307f;
/* rgb */ color: rgb(74, 48, 127);
/* oklch */ color: oklch(38.4% 0.128 294.8);
Tailwind
colors: {
  custom: {
    50: '#8169a5',
    500: '#4a307f',
    950: '#000000',
  },
}
SCSS
$custom: #4a307f;
$custom-light: #8169a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a307f",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 259.747,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38406,
    "c": 0.12779,
    "h": 294.8
  },
  "luminance": 0.05102
}

Semantic roles & 50–950 ramp

primary
#4A307F
secondary
#93AC5F
accent
#D553AA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4A307F

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

Preview Lab → · Contrast checker → · Palette generator →

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