#4845AA#4845AA

#4845AA is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.157 H 279.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#4845AA
RGBrgb(72, 69, 170)
HSLhsl(242, 42%, 47%)
HSVhsv(242, 59%, 67%)
CMYKcmyk(57.6%, 59.4%, 0%, 33.3%)
CIE-LABlab(35.07, 31.06, -54.02)
CIE-LCHlch(35.07, 62.31, 299.90°)
OKLaboklab(45.29% 0.0257 -0.155)
OKLCHoklch(45.29% 0.157 279.4)
XYZxyz(12.0540, 8.5354, 39.0347)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4845AA #A7AA45
analogous
#4575AA #4845AA #7B45AA
triadic
#4845AA #AA4845 #45AA48
tetradic
#4845AA #AA4575 #A7AA45 #45AA7B
square
#4845AA #AA4575 #A7AA45 #45AA7B
split-complementary
#4845AA #AA7B45 #75AA45
monochromatic
#232253 #36337E #4845AA #6C6AC2 #9795D4

Accessibility & contrast

On white

7.76
#4845AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4845AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4845AA#FFFFFF#000000##FFFFFF
##4845AA1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#0F5D71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4845aa;
/* rgb */ color: rgb(72, 69, 170);
/* oklch */ color: oklch(45.3% 0.157 279.4);
Tailwind
colors: {
  custom: {
    50: '#8479c4',
    500: '#4845aa',
    950: '#000000',
  },
}
SCSS
$custom: #4845aa;
$custom-light: #8479c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4845aa",
  "rgb": {
    "r": 72,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 241.782,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45293,
    "c": 0.15715,
    "h": 279.4
  },
  "luminance": 0.08536
}

Semantic roles & 50–950 ramp

primary
#4845AA
secondary
#BEC08B
accent
#D256CE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4845AA

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

Preview Lab → · Contrast checker → · Palette generator →

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