#4840DD#4840DD

#4840DD is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.228 H 276.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4840DD
RGBrgb(72, 64, 221)
HSLhsl(243, 70%, 56%)
HSVhsv(243, 71%, 87%)
CMYKcmyk(67.4%, 71%, 0%, 13.3%)
CIE-LABlab(38.31, 50.63, -78.52)
CIE-LCHlch(38.31, 93.43, 302.82°)
OKLaboklab(48.98% 0.0243 -0.2269)
OKLCHoklch(48.98% 0.228 276.1)
XYZxyz(17.5528, 10.2634, 69.4486)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840DD #D5DD40
analogous
#4086DD #4840DD #9640DD
triadic
#4840DD #DD4840 #40DD48
tetradic
#4840DD #DD4086 #D5DD40 #40DD96
square
#4840DD #DD4086 #D5DD40 #40DD96
split-complementary
#4840DD #DD9640 #86DD40
monochromatic
#1E198A #2A22BE #4840DD #7A74E6 #ACA8EF

Accessibility & contrast

On white

6.88
#4840DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4840DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4840DD
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840DD#FFFFFF#000000##FFFFFF
##4840DD1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E2
Deuteranopia (green-blind)
#0053DA
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4840dd;
/* rgb */ color: rgb(72, 64, 221);
/* oklch */ color: oklch(49.0% 0.228 276.1);
Tailwind
colors: {
  custom: {
    50: '#8e77e9',
    500: '#4840dd',
    950: '#000000',
  },
}
SCSS
$custom: #4840dd;
$custom-light: #8e77e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4840dd",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 243.057,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.48979,
    "c": 0.22817,
    "h": 276.1
  },
  "luminance": 0.10265
}

Semantic roles & 50–950 ramp

primary
#4840DD
secondary
#DADD9C
accent
#ED3BE4
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840DD

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

Preview Lab → · Contrast checker → · Palette generator →

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