#4842DF#4842DF

#4842DF is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.5% C 0.229 H 275.7°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#4842DF
RGBrgb(72, 66, 223)
HSLhsl(242, 71%, 57%)
HSVhsv(242, 70%, 87%)
CMYKcmyk(67.7%, 70.4%, 0%, 12.5%)
CIE-LABlab(38.90, 50.16, -78.70)
CIE-LCHlch(38.90, 93.32, 302.51°)
OKLaboklab(49.46% 0.0228 -0.2274)
OKLCHoklch(49.46% 0.229 275.7)
XYZxyz(17.9356, 10.6002, 70.8986)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842DF #D9DF42
analogous
#428BDF #4842DF #9742DF
triadic
#4842DF #DF4842 #42DF48
tetradic
#4842DF #DF428B #D9DF42 #42DF97
square
#4842DF #DF428B #D9DF42 #42DF97
split-complementary
#4842DF #DF9742 #8BDF42
monochromatic
#1D188E #2721C3 #4842DF #7B76E8 #ADABF1

Accessibility & contrast

On white

6.73
#4842DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4842DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4842DF
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842DF#FFFFFF#000000##FFFFFF
##4842DF1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0055DC
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4842df;
/* rgb */ color: rgb(72, 66, 223);
/* oklch */ color: oklch(49.5% 0.229 275.7);
Tailwind
colors: {
  custom: {
    50: '#8e78ea',
    500: '#4842df',
    950: '#000000',
  },
}
SCSS
$custom: #4842df;
$custom-light: #8e78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4842df",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 242.293,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.49455,
    "c": 0.22853,
    "h": 275.7
  },
  "luminance": 0.10602
}

Semantic roles & 50–950 ramp

primary
#4842DF
secondary
#DCDF9E
accent
#EE3AE7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4842DF

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

Preview Lab → · Contrast checker → · Palette generator →

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