#4828BB#4828BB

#4828BB is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.211 H 282.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4828BB
RGBrgb(72, 40, 187)
HSLhsl(253, 65%, 45%)
HSVhsv(253, 79%, 73%)
CMYKcmyk(61.5%, 78.6%, 0%, 26.7%)
CIE-LABlab(30.60, 52.72, -71.45)
CIE-LCHlch(30.60, 88.80, 306.42°)
OKLaboklab(42.54% 0.0464 -0.2061)
OKLCHoklch(42.54% 0.211 282.7)
XYZxyz(12.3981, 6.4823, 47.6019)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4828BB #9BBB28
analogous
#2852BB #4828BB #9228BB
triadic
#4828BB #BB4828 #28BB48
tetradic
#4828BB #BB2852 #9BBB28 #28BB92
square
#4828BB #BB2852 #9BBB28 #28BB92
split-complementary
#4828BB #BB9228 #52BB28
monochromatic
#211256 #351D89 #4828BB #6848D8 #917BE3

Accessibility & contrast

On white

9.14
#4828BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4828BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4828BB
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4828BB#FFFFFF#000000##FFFFFF
##4828BB1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0043B8
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4828bb;
/* rgb */ color: rgb(72, 40, 187);
/* oklch */ color: oklch(42.5% 0.211 282.7);
Tailwind
colors: {
  custom: {
    50: '#8967d1',
    500: '#4828bb',
    950: '#000000',
  },
}
SCSS
$custom: #4828bb;
$custom-light: #8967d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4828bb",
  "rgb": {
    "r": 72,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 253.061,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42538,
    "c": 0.21122,
    "h": 282.7
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#4828BB
secondary
#B8CB74
accent
#E840C3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4828BB

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

Preview Lab → · Contrast checker → · Palette generator →

#4828BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva