#4842DB#4842DB

#4842DB is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.224 H 276.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#4842DB
RGBrgb(72, 66, 219)
HSLhsl(242, 68%, 56%)
HSVhsv(242, 70%, 86%)
CMYKcmyk(67.1%, 69.9%, 0%, 14.1%)
CIE-LABlab(38.53, 48.88, -77.02)
CIE-LCHlch(38.53, 91.22, 302.40°)
OKLaboklab(49.08% 0.0234 -0.2225)
OKLCHoklch(49.08% 0.224 276)
XYZxyz(17.4027, 10.3871, 68.0919)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842DB #D5DB42
analogous
#4288DB #4842DB #9442DB
triadic
#4842DB #DB4842 #42DB48
tetradic
#4842DB #DB4288 #D5DB42 #42DB94
square
#4842DB #DB4288 #D5DB42 #42DB94
split-complementary
#4842DB #DB9442 #88DB42
monochromatic
#1E1A89 #2A24BC #4842DB #7A75E5 #ACA9EF

Accessibility & contrast

On white

6.82
#4842DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4842DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4842DB
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842DB#FFFFFF#000000##FFFFFF
##4842DB1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#0054D8
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4842db;
/* rgb */ color: rgb(72, 66, 219);
/* oklch */ color: oklch(49.1% 0.224 276.0);
Tailwind
colors: {
  custom: {
    50: '#8e78e7',
    500: '#4842db',
    950: '#000000',
  },
}
SCSS
$custom: #4842db;
$custom-light: #8e78e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4842db",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 242.353,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49078,
    "c": 0.22372,
    "h": 276
  },
  "luminance": 0.10389
}

Semantic roles & 50–950 ramp

primary
#4842DB
secondary
#DADC9D
accent
#EB3DE4
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4842DB

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

Preview Lab → · Contrast checker → · Palette generator →

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