#4842CF#4842CF

#4842CF is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.209 H 276.9°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#4842CF
RGBrgb(72, 66, 207)
HSLhsl(243, 59%, 54%)
HSVhsv(243, 68%, 81%)
CMYKcmyk(65.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(37.44, 45.03, -71.89)
CIE-LCHlch(37.44, 84.83, 302.06°)
OKLaboklab(47.97% 0.0252 -0.2075)
OKLCHoklch(47.97% 0.209 276.9)
XYZxyz(15.8795, 9.7778, 60.0699)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842CF #C9CF42
analogous
#4282CF #4842CF #8E42CF
triadic
#4842CF #CF4842 #42CF48
tetradic
#4842CF #CF4282 #C9CF42 #42CF8E
square
#4842CF #CF4282 #C9CF42 #42CF8E
split-complementary
#4842CF #CF8E42 #82CF42
monochromatic
#221F78 #302BA9 #4842CF #7773DB #A7A4E8

Accessibility & contrast

On white

7.10
#4842CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4842CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4842CF
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842CF#FFFFFF#000000##FFFFFF
##4842CF1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4842cf;
/* rgb */ color: rgb(72, 66, 207);
/* oklch */ color: oklch(48.0% 0.209 276.9);
Tailwind
colors: {
  custom: {
    50: '#8b77df',
    500: '#4842cf',
    950: '#000000',
  },
}
SCSS
$custom: #4842cf;
$custom-light: #8b77df;
$custom-dark: #000000;
JSON
{
  "hex": "#4842cf",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 242.553,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47966,
    "c": 0.20903,
    "h": 276.9
  },
  "luminance": 0.09779
}

Semantic roles & 50–950 ramp

primary
#4842CF
secondary
#D2D598
accent
#E345DC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4842CF

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

Preview Lab → · Contrast checker → · Palette generator →

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