#4840BA#4840BA

#4840BA is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.185 H 279.1°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#4840BA
RGBrgb(72, 64, 186)
HSLhsl(244, 49%, 49%)
HSVhsv(244, 66%, 73%)
CMYKcmyk(61.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(35.18, 39.41, -63.33)
CIE-LCHlch(35.18, 74.59, 301.89°)
OKLaboklab(45.77% 0.0293 -0.1824)
OKLCHoklch(45.77% 0.185 279.1)
XYZxyz(13.3660, 8.5887, 47.3983)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840BA #B2BA40
analogous
#4075BA #4840BA #8540BA
triadic
#4840BA #BA4840 #40BA48
tetradic
#4840BA #BA4075 #B2BA40 #40BA85
square
#4840BA #BA4075 #B2BA40 #40BA85
split-complementary
#4840BA #BA8540 #75BA40
monochromatic
#25215F #36308C #4840BA #716BCC #9D99DC

Accessibility & contrast

On white

7.73
#4840BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4840BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4840BA#FFFFFF#000000##FFFFFF
##4840BA1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4840ba;
/* rgb */ color: rgb(72, 64, 186);
/* oklch */ color: oklch(45.8% 0.185 279.1);
Tailwind
colors: {
  custom: {
    50: '#8776d0',
    500: '#4840ba',
    950: '#000000',
  },
}
SCSS
$custom: #4840ba;
$custom-light: #8776d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4840ba",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 243.934,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4577,
    "c": 0.18476,
    "h": 279.1
  },
  "luminance": 0.0859
}

Semantic roles & 50–950 ramp

primary
#4840BA
secondary
#C4C88E
accent
#D84FCF
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4840BA

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

Preview Lab → · Contrast checker → · Palette generator →

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