#4840CA#4840CA

#4840CA is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.2% C 0.205 H 277.6°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#4840CA
RGBrgb(72, 64, 202)
HSLhsl(243, 57%, 52%)
HSVhsv(243, 68%, 79%)
CMYKcmyk(64.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(36.57, 44.58, -70.42)
CIE-LCHlch(36.57, 83.35, 302.34°)
OKLaboklab(47.2% 0.0273 -0.2032)
OKLCHoklch(47.2% 0.205 277.6)
XYZxyz(15.1631, 9.3075, 56.8631)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840CA #C2CA40
analogous
#407DCA #4840CA #8D40CA
triadic
#4840CA #CA4840 #40CA48
tetradic
#4840CA #CA407D #C2CA40 #40CA8D
square
#4840CA #CA407D #C2CA40 #40CA8D
split-complementary
#4840CA #CA8D40 #7DCA40
monochromatic
#241F70 #332CA0 #4840CA #7670D7 #A4A0E5

Accessibility & contrast

On white

7.34
#4840CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4840CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840CA
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840CA#FFFFFF#000000##FFFFFF
##4840CA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4840ca;
/* rgb */ color: rgb(72, 64, 202);
/* oklch */ color: oklch(47.2% 0.205 277.6);
Tailwind
colors: {
  custom: {
    50: '#8a76db',
    500: '#4840ca',
    950: '#000000',
  },
}
SCSS
$custom: #4840ca;
$custom-light: #8a76db;
$custom-dark: #000000;
JSON
{
  "hex": "#4840ca",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 243.478,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47202,
    "c": 0.20502,
    "h": 277.6
  },
  "luminance": 0.09309
}

Semantic roles & 50–950 ramp

primary
#4840CA
secondary
#CED195
accent
#E048D7
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4840CA

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

Preview Lab → · Contrast checker → · Palette generator →

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