#4840BE#4840BE

#4840BE is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.190 H 278.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#4840BE
RGBrgb(72, 64, 190)
HSLhsl(244, 50%, 50%)
HSVhsv(244, 66%, 75%)
CMYKcmyk(62.1%, 66.3%, 0%, 25.5%)
CIE-LABlab(35.52, 40.71, -65.13)
CIE-LCHlch(35.52, 76.81, 302.01°)
OKLaboklab(46.12% 0.0288 -0.1877)
OKLCHoklch(46.12% 0.19 278.7)
XYZxyz(13.7972, 8.7612, 49.6692)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840BE #B6BE40
analogous
#4077BE #4840BE #8740BE
triadic
#4840BE #BE4840 #40BE48
tetradic
#4840BE #BE4077 #B6BE40 #40BE87
square
#4840BE #BE4077 #B6BE40 #40BE87
split-complementary
#4840BE #BE8740 #77BE40
monochromatic
#252162 #373190 #4840BE #736DCE #9F9BDD

Accessibility & contrast

On white

7.63
#4840BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4840BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840BE
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840BE#FFFFFF#000000##FFFFFF
##4840BE1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4840be;
/* rgb */ color: rgb(72, 64, 190);
/* oklch */ color: oklch(46.1% 0.190 278.7);
Tailwind
colors: {
  custom: {
    50: '#8876d3',
    500: '#4840be',
    950: '#000000',
  },
}
SCSS
$custom: #4840be;
$custom-light: #8876d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4840be",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 243.81,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46122,
    "c": 0.1899,
    "h": 278.7
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#4840BE
secondary
#C6C990
accent
#D94FD0
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4840BE

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

Preview Lab → · Contrast checker → · Palette generator →

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