#4842CA#4842CA

#4842CA is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.203 H 277.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#4842CA
RGBrgb(72, 66, 202)
HSLhsl(243, 56%, 53%)
HSVhsv(243, 67%, 79%)
CMYKcmyk(64.4%, 67.3%, 0%, 20.8%)
CIE-LABlab(37.00, 43.42, -69.72)
CIE-LCHlch(37.00, 82.13, 301.91°)
OKLaboklab(47.51% 0.0258 -0.2011)
OKLCHoklch(47.51% 0.203 277.3)
XYZxyz(15.2779, 9.5372, 56.9014)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842CA #C4CA42
analogous
#4280CA #4842CA #8C42CA
triadic
#4842CA #CA4842 #42CA48
tetradic
#4842CA #CA4280 #C4CA42 #42CA8C
square
#4842CA #CA4280 #C4CA42 #42CA8C
split-complementary
#4842CA #CA8C42 #80CA42
monochromatic
#232072 #322DA2 #4842CA #7672D7 #A5A2E5

Accessibility & contrast

On white

7.22
#4842CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4842CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4842CA
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842CA#FFFFFF#000000##FFFFFF
##4842CA1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4842ca;
/* rgb */ color: rgb(72, 66, 202);
/* oklch */ color: oklch(47.5% 0.203 277.3);
Tailwind
colors: {
  custom: {
    50: '#8a77db',
    500: '#4842ca',
    950: '#000000',
  },
}
SCSS
$custom: #4842ca;
$custom-light: #8a77db;
$custom-dark: #000000;
JSON
{
  "hex": "#4842ca",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 242.647,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47511,
    "c": 0.20279,
    "h": 277.3
  },
  "luminance": 0.09538
}

Semantic roles & 50–950 ramp

primary
#4842CA
secondary
#CFD196
accent
#DF48D9
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4842CA

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

Preview Lab → · Contrast checker → · Palette generator →

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