#4842CB#4842CB

#4842CB is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.6% C 0.204 H 277.2°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#4842CB
RGBrgb(72, 66, 203)
HSLhsl(243, 57%, 53%)
HSVhsv(243, 67%, 80%)
CMYKcmyk(64.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(37.09, 43.74, -70.16)
CIE-LCHlch(37.09, 82.67, 301.94°)
OKLaboklab(47.6% 0.0257 -0.2024)
OKLCHoklch(47.6% 0.204 277.2)
XYZxyz(15.3967, 9.5847, 57.5270)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842CB #C5CB42
analogous
#4280CB #4842CB #8D42CB
triadic
#4842CB #CB4842 #42CB48
tetradic
#4842CB #CB4280 #C5CB42 #42CB8D
square
#4842CB #CB4280 #C5CB42 #42CB8D
split-complementary
#4842CB #CB8D42 #80CB42
monochromatic
#232073 #322DA3 #4842CB #7672D8 #A5A2E5

Accessibility & contrast

On white

7.20
#4842CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4842CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4842CB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842CB#FFFFFF#000000##FFFFFF
##4842CB1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4842cb;
/* rgb */ color: rgb(72, 66, 203);
/* oklch */ color: oklch(47.6% 0.204 277.2);
Tailwind
colors: {
  custom: {
    50: '#8a77dc',
    500: '#4842cb',
    950: '#000000',
  },
}
SCSS
$custom: #4842cb;
$custom-light: #8a77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4842cb",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 242.628,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47602,
    "c": 0.20404,
    "h": 277.2
  },
  "luminance": 0.09586
}

Semantic roles & 50–950 ramp

primary
#4842CB
secondary
#CFD297
accent
#E048D9
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4842CB

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

Preview Lab → · Contrast checker → · Palette generator →

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