#4845A2#4845A2

#4845A2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.7% C 0.146 H 280.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#4845A2
RGBrgb(72, 69, 162)
HSLhsl(242, 40%, 45%)
HSVhsv(242, 57%, 64%)
CMYKcmyk(55.6%, 57.4%, 0%, 36.5%)
CIE-LABlab(34.48, 28.41, -50.19)
CIE-LCHlch(34.48, 57.67, 299.51°)
OKLaboklab(44.67% 0.0257 -0.1438)
OKLCHoklch(44.67% 0.146 280.1)
XYZxyz(11.3202, 8.2419, 35.1697)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4845A2 #9FA245
analogous
#4571A2 #4845A2 #7645A2
triadic
#4845A2 #A24845 #45A248
tetradic
#4845A2 #A24571 #9FA245 #45A276
square
#4845A2 #A24571 #9FA245 #45A276
split-complementary
#4845A2 #A27645 #71A245
monochromatic
#22204C #353377 #4845A2 #6966BE #9391D0

Accessibility & contrast

On white

7.93
#4845A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4845A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4845A2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4845A2#FFFFFF#000000##FFFFFF
##4845A21.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#1D5B6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4845a2;
/* rgb */ color: rgb(72, 69, 162);
/* oklch */ color: oklch(44.7% 0.146 280.1);
Tailwind
colors: {
  custom: {
    50: '#8379be',
    500: '#4845a2',
    950: '#000000',
  },
}
SCSS
$custom: #4845a2;
$custom-light: #8379be;
$custom-dark: #000000;
JSON
{
  "hex": "#4845a2",
  "rgb": {
    "r": 72,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 241.935,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44667,
    "c": 0.14605,
    "h": 280.1
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#4845A2
secondary
#BABC87
accent
#D058CC
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #4845A2

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

Preview Lab → · Contrast checker → · Palette generator →

#4845A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva