#4840DB#4840DB

#4840DB is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.226 H 276.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#4840DB
RGBrgb(72, 64, 219)
HSLhsl(243, 68%, 55%)
HSVhsv(243, 71%, 86%)
CMYKcmyk(67.1%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.12, 50.00, -77.68)
CIE-LCHlch(38.12, 92.38, 302.77°)
OKLaboklab(48.79% 0.0247 -0.2244)
OKLCHoklch(48.79% 0.226 276.3)
XYZxyz(17.2879, 10.1574, 68.0536)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840DB #D3DB40
analogous
#4085DB #4840DB #9640DB
triadic
#4840DB #DB4840 #40DB48
tetradic
#4840DB #DB4085 #D3DB40 #40DB96
square
#4840DB #DB4085 #D3DB40 #40DB96
split-complementary
#4840DB #DB9640 #85DB40
monochromatic
#1F1987 #2B23BB #4840DB #7973E5 #ABA7EE

Accessibility & contrast

On white

6.93
#4840DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4840DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4840DB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840DB#FFFFFF#000000##FFFFFF
##4840DB1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E0
Deuteranopia (green-blind)
#0053D8
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4840db;
/* rgb */ color: rgb(72, 64, 219);
/* oklch */ color: oklch(48.8% 0.226 276.3);
Tailwind
colors: {
  custom: {
    50: '#8e77e7',
    500: '#4840db',
    950: '#000000',
  },
}
SCSS
$custom: #4840db;
$custom-light: #8e77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4840db",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 243.097,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.48788,
    "c": 0.22578,
    "h": 276.3
  },
  "luminance": 0.10159
}

Semantic roles & 50–950 ramp

primary
#4840DB
secondary
#D8DC9B
accent
#EB3DE2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840DB

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

Preview Lab → · Contrast checker → · Palette generator →

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