#4842BF#4842BF

#4842BF is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.189 H 278.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#4842BF
RGBrgb(72, 66, 191)
HSLhsl(243, 49%, 50%)
HSVhsv(243, 65%, 75%)
CMYKcmyk(62.3%, 65.4%, 0%, 25.1%)
CIE-LABlab(36.05, 39.84, -64.85)
CIE-LCHlch(36.05, 76.11, 301.56°)
OKLaboklab(46.53% 0.0271 -0.1869)
OKLCHoklch(46.53% 0.189 278.2)
XYZxyz(14.0217, 9.0346, 50.2851)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842BF #B9BF42
analogous
#427ABF #4842BF #8642BF
triadic
#4842BF #BF4842 #42BF48
tetradic
#4842BF #BF427A #B9BF42 #42BF86
square
#4842BF #BF427A #B9BF42 #42BF86
split-complementary
#4842BF #BF8642 #7ABF42
monochromatic
#252265 #363292 #4842BF #7470CE #A19DDE

Accessibility & contrast

On white

7.48
#4842BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4842BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4842BF
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842BF#FFFFFF#000000##FFFFFF
##4842BF1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4842bf;
/* rgb */ color: rgb(72, 66, 191);
/* oklch */ color: oklch(46.5% 0.189 278.2);
Tailwind
colors: {
  custom: {
    50: '#8877d3',
    500: '#4842bf',
    950: '#000000',
  },
}
SCSS
$custom: #4842bf;
$custom-light: #8877d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4842bf",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 242.88,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46533,
    "c": 0.18882,
    "h": 278.2
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

primary
#4842BF
secondary
#C8CA93
accent
#D94FD2
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4842BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4842BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva