#4840BC#4840BC

#4840BC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.9% C 0.187 H 278.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#4840BC
RGBrgb(72, 64, 188)
HSLhsl(244, 49%, 49%)
HSVhsv(244, 66%, 74%)
CMYKcmyk(61.7%, 66%, 0%, 26.3%)
CIE-LABlab(35.35, 40.06, -64.24)
CIE-LCHlch(35.35, 75.70, 301.95°)
OKLaboklab(45.95% 0.0291 -0.1851)
OKLCHoklch(45.95% 0.187 278.9)
XYZxyz(13.5801, 8.6743, 48.5259)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840BC #B4BC40
analogous
#4076BC #4840BC #8640BC
triadic
#4840BC #BC4840 #40BC48
tetradic
#4840BC #BC4076 #B4BC40 #40BC86
square
#4840BC #BC4076 #B4BC40 #40BC86
split-complementary
#4840BC #BC8640 #76BC40
monochromatic
#252161 #37308E #4840BC #726CCD #9E9ADD

Accessibility & contrast

On white

7.68
#4840BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4840BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4840BC#FFFFFF#000000##FFFFFF
##4840BC1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4840bc;
/* rgb */ color: rgb(72, 64, 188);
/* oklch */ color: oklch(45.9% 0.187 278.9);
Tailwind
colors: {
  custom: {
    50: '#8876d1',
    500: '#4840bc',
    950: '#000000',
  },
}
SCSS
$custom: #4840bc;
$custom-light: #8876d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4840bc",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 243.871,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45946,
    "c": 0.18734,
    "h": 278.9
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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