#4840BD#4840BD

#4840BD is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.189 H 278.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#4840BD
RGBrgb(72, 64, 189)
HSLhsl(244, 49%, 50%)
HSVhsv(244, 66%, 74%)
CMYKcmyk(61.9%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.43, 40.38, -64.68)
CIE-LCHlch(35.43, 76.25, 301.98°)
OKLaboklab(46.03% 0.029 -0.1864)
OKLCHoklch(46.03% 0.189 278.8)
XYZxyz(13.6883, 8.7176, 49.0956)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840BD #B5BD40
analogous
#4077BD #4840BD #8740BD
triadic
#4840BD #BD4840 #40BD48
tetradic
#4840BD #BD4077 #B5BD40 #40BD87
square
#4840BD #BD4077 #B5BD40 #40BD87
split-complementary
#4840BD #BD8740 #77BD40
monochromatic
#252162 #37318F #4840BD #736DCD #9F9ADD

Accessibility & contrast

On white

7.65
#4840BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4840BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4840BD#FFFFFF#000000##FFFFFF
##4840BD1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#006079
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4840bd;
/* rgb */ color: rgb(72, 64, 189);
/* oklch */ color: oklch(46.0% 0.189 278.8);
Tailwind
colors: {
  custom: {
    50: '#8876d2',
    500: '#4840bd',
    950: '#000000',
  },
}
SCSS
$custom: #4840bd;
$custom-light: #8876d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4840bd",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 243.84,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46034,
    "c": 0.18862,
    "h": 278.8
  },
  "luminance": 0.08719
}

Semantic roles & 50–950 ramp

primary
#4840BD
secondary
#C5C990
accent
#D94FD0
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0814
muted
#7D7B83

Preview Lab

Preview with #4840BD

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

Preview Lab → · Contrast checker → · Palette generator →

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