#4840C4#4840C4

#4840C4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.7% C 0.198 H 278.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#4840C4
RGBrgb(72, 64, 196)
HSLhsl(244, 53%, 51%)
HSVhsv(244, 67%, 77%)
CMYKcmyk(63.3%, 67.3%, 0%, 23.1%)
CIE-LABlab(36.04, 42.65, -67.79)
CIE-LCHlch(36.04, 80.09, 302.17°)
OKLaboklab(46.66% 0.0281 -0.1955)
OKLCHoklch(46.66% 0.198 278.2)
XYZxyz(14.4665, 9.0289, 53.1943)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840C4 #BCC440
analogous
#407AC4 #4840C4 #8A40C4
triadic
#4840C4 #C44840 #40C448
tetradic
#4840C4 #C4407A #BCC440 #40C48A
square
#4840C4 #C4407A #BCC440 #40C48A
split-complementary
#4840C4 #C48A40 #7AC440
monochromatic
#252069 #352F98 #4840C4 #756FD2 #A29EE1

Accessibility & contrast

On white

7.48
#4840C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4840C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840C4
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840C4#FFFFFF#000000##FFFFFF
##4840C41.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#004FC1
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4840c4;
/* rgb */ color: rgb(72, 64, 196);
/* oklch */ color: oklch(46.7% 0.198 278.2);
Tailwind
colors: {
  custom: {
    50: '#8976d7',
    500: '#4840c4',
    950: '#000000',
  },
}
SCSS
$custom: #4840c4;
$custom-light: #8976d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4840c4",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 243.636,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46658,
    "c": 0.19752,
    "h": 278.2
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#4840C4
secondary
#CACD93
accent
#DC4CD3
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4840C4

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

Preview Lab → · Contrast checker → · Palette generator →

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