#4845AF#4845AF

#4845AF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.7% C 0.164 H 279.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#4845AF
RGBrgb(72, 69, 175)
HSLhsl(242, 43%, 48%)
HSVhsv(242, 61%, 69%)
CMYKcmyk(58.9%, 60.6%, 0%, 31.4%)
CIE-LABlab(35.46, 32.72, -56.38)
CIE-LCHlch(35.46, 65.18, 300.13°)
OKLaboklab(45.7% 0.0255 -0.162)
OKLCHoklch(45.7% 0.164 279)
XYZxyz(12.5360, 8.7282, 41.5732)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4845AF #ACAF45
analogous
#4577AF #4845AF #7D45AF
triadic
#4845AF #AF4845 #45AF48
tetradic
#4845AF #AF4577 #ACAF45 #45AF7D
square
#4845AF #AF4577 #ACAF45 #45AF7D
split-complementary
#4845AF #AF7D45 #77AF45
monochromatic
#242257 #363483 #4845AF #6F6CC5 #9A98D6

Accessibility & contrast

On white

7.65
#4845AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4845AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4845AF#FFFFFF#000000##FFFFFF
##4845AF1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#015F73
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4845af;
/* rgb */ color: rgb(72, 69, 175);
/* oklch */ color: oklch(45.7% 0.164 279.0);
Tailwind
colors: {
  custom: {
    50: '#8579c8',
    500: '#4845af',
    950: '#000000',
  },
}
SCSS
$custom: #4845af;
$custom-light: #8579c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4845af",
  "rgb": {
    "r": 72,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 241.698,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45695,
    "c": 0.16397,
    "h": 279
  },
  "luminance": 0.08729
}

Semantic roles & 50–950 ramp

primary
#4845AF
secondary
#C1C28D
accent
#D355D0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #4845AF

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

Preview Lab → · Contrast checker → · Palette generator →

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