#4840AA#4840AA

#4840AA is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.164 H 280.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4840AA
RGBrgb(72, 64, 170)
HSLhsl(245, 45%, 46%)
HSVhsv(245, 62%, 67%)
CMYKcmyk(57.6%, 62.4%, 0%, 33.3%)
CIE-LABlab(33.87, 34.19, -55.98)
CIE-LCHlch(33.87, 65.59, 301.41°)
OKLaboklab(44.41% 0.0306 -0.1608)
OKLCHoklch(44.41% 0.164 280.8)
XYZxyz(11.7593, 7.9460, 38.9365)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840AA #A2AA40
analogous
#406DAA #4840AA #7D40AA
triadic
#4840AA #AA4840 #40AA48
tetradic
#4840AA #AA406D #A2AA40 #40AA7D
square
#4840AA #AA406D #A2AA40 #40AA7D
split-complementary
#4840AA #AA7D40 #6DAA40
monochromatic
#221F51 #352F7E #4840AA #6A63C4 #958FD5

Accessibility & contrast

On white

8.11
#4840AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4840AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840AA
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840AA#FFFFFF#000000##FFFFFF
##4840AA1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#115A6F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4840aa;
/* rgb */ color: rgb(72, 64, 170);
/* oklch */ color: oklch(44.4% 0.164 280.8);
Tailwind
colors: {
  custom: {
    50: '#8575c4',
    500: '#4840aa',
    950: '#000000',
  },
}
SCSS
$custom: #4840aa;
$custom-light: #8575c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4840aa",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 244.528,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44408,
    "c": 0.16371,
    "h": 280.8
  },
  "luminance": 0.07947
}

Semantic roles & 50–950 ramp

primary
#4840AA
secondary
#BCC086
accent
#D553CB
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4840AA

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

Preview Lab → · Contrast checker → · Palette generator →

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