#4840C2#4840C2

#4840C2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.5% C 0.195 H 278.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#4840C2
RGBrgb(72, 64, 194)
HSLhsl(244, 52%, 51%)
HSVhsv(244, 67%, 76%)
CMYKcmyk(62.9%, 67%, 0%, 23.9%)
CIE-LABlab(35.87, 42.00, -66.91)
CIE-LCHlch(35.87, 79.00, 302.12°)
OKLaboklab(46.48% 0.0284 -0.1929)
OKLCHoklch(46.48% 0.195 278.4)
XYZxyz(14.2404, 8.9384, 52.0033)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840C2 #BAC240
analogous
#4079C2 #4840C2 #8940C2
triadic
#4840C2 #C24840 #40C248
tetradic
#4840C2 #C24079 #BAC240 #40C289
square
#4840C2 #C24079 #BAC240 #40C289
split-complementary
#4840C2 #C28940 #79C240
monochromatic
#252167 #363095 #4840C2 #746ED1 #A19DE0

Accessibility & contrast

On white

7.53
#4840C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4840C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840C2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840C2#FFFFFF#000000##FFFFFF
##4840C21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004FC0
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4840c2;
/* rgb */ color: rgb(72, 64, 194);
/* oklch */ color: oklch(46.5% 0.195 278.4);
Tailwind
colors: {
  custom: {
    50: '#8976d6',
    500: '#4840c2',
    950: '#000000',
  },
}
SCSS
$custom: #4840c2;
$custom-light: #8976d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4840c2",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 243.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46478,
    "c": 0.19499,
    "h": 278.4
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#4840C2
secondary
#C8CC92
accent
#DB4DD2
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4840C2

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

Preview Lab → · Contrast checker → · Palette generator →

#4840C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva