#4842CD#4842CD

#4842CD is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.8% C 0.207 H 277.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#4842CD
RGBrgb(72, 66, 205)
HSLhsl(243, 58%, 53%)
HSVhsv(243, 68%, 80%)
CMYKcmyk(64.9%, 67.8%, 0%, 19.6%)
CIE-LABlab(37.26, 44.39, -71.03)
CIE-LCHlch(37.26, 83.76, 302.00°)
OKLaboklab(47.78% 0.0254 -0.205)
OKLCHoklch(47.78% 0.207 277.1)
XYZxyz(15.6366, 9.6806, 58.7903)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842CD #C7CD42
analogous
#4281CD #4842CD #8D42CD
triadic
#4842CD #CD4842 #42CD48
tetradic
#4842CD #CD4281 #C7CD42 #42CD8D
square
#4842CD #CD4281 #C7CD42 #42CD8D
split-complementary
#4842CD #CD8D42 #81CD42
monochromatic
#231F76 #312CA6 #4842CD #7772DA #A6A3E7

Accessibility & contrast

On white

7.15
#4842CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4842CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4842CD
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842CD#FFFFFF#000000##FFFFFF
##4842CD1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4842cd;
/* rgb */ color: rgb(72, 66, 205);
/* oklch */ color: oklch(47.8% 0.207 277.1);
Tailwind
colors: {
  custom: {
    50: '#8b77dd',
    500: '#4842cd',
    950: '#000000',
  },
}
SCSS
$custom: #4842cd;
$custom-light: #8b77dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4842cd",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 242.59,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47783,
    "c": 0.20654,
    "h": 277.1
  },
  "luminance": 0.09682
}

Semantic roles & 50–950 ramp

primary
#4842CD
secondary
#D1D397
accent
#E146DB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4842CD

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

Preview Lab → · Contrast checker → · Palette generator →

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