#4840BF#4840BF

#4840BF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.2% C 0.191 H 278.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#4840BF
RGBrgb(72, 64, 191)
HSLhsl(244, 50%, 50%)
HSVhsv(244, 66%, 75%)
CMYKcmyk(62.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.61, 41.03, -65.58)
CIE-LCHlch(35.61, 77.36, 302.03°)
OKLaboklab(46.21% 0.0287 -0.189)
OKLCHoklch(46.21% 0.191 278.6)
XYZxyz(13.9068, 8.8050, 50.2468)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840BF #B7BF40
analogous
#4077BF #4840BF #8840BF
triadic
#4840BF #BF4840 #40BF48
tetradic
#4840BF #BF4077 #B7BF40 #40BF88
square
#4840BF #BF4077 #B7BF40 #40BF88
split-complementary
#4840BF #BF8840 #77BF40
monochromatic
#252163 #373191 #4840BF #746ECE #A09CDE

Accessibility & contrast

On white

7.61
#4840BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4840BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4840BF#FFFFFF#000000##FFFFFF
##4840BF1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4840bf;
/* rgb */ color: rgb(72, 64, 191);
/* oklch */ color: oklch(46.2% 0.191 278.6);
Tailwind
colors: {
  custom: {
    50: '#8876d3',
    500: '#4840bf',
    950: '#000000',
  },
}
SCSS
$custom: #4840bf;
$custom-light: #8876d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4840bf",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 243.78,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46211,
    "c": 0.19118,
    "h": 278.6
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#4840BF
secondary
#C6CA91
accent
#D94ED1
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4840BF

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

Preview Lab → · Contrast checker → · Palette generator →

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