#4840CB#4840CB

#4840CB is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.3% C 0.206 H 277.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#4840CB
RGBrgb(72, 64, 203)
HSLhsl(243, 57%, 52%)
HSVhsv(243, 68%, 80%)
CMYKcmyk(64.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.66, 44.91, -70.86)
CIE-LCHlch(36.66, 83.89, 302.36°)
OKLaboklab(47.29% 0.0271 -0.2045)
OKLCHoklch(47.29% 0.206 277.6)
XYZxyz(15.2819, 9.3550, 57.4887)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840CB #C3CB40
analogous
#407ECB #4840CB #8D40CB
triadic
#4840CB #CB4840 #40CB48
tetradic
#4840CB #CB407E #C3CB40 #40CB8D
square
#4840CB #CB407E #C3CB40 #40CB8D
split-complementary
#4840CB #CB8D40 #7ECB40
monochromatic
#241F72 #332CA2 #4840CB #7670D8 #A4A0E5

Accessibility & contrast

On white

7.31
#4840CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4840CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840CB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840CB#FFFFFF#000000##FFFFFF
##4840CB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4840cb;
/* rgb */ color: rgb(72, 64, 203);
/* oklch */ color: oklch(47.3% 0.206 277.6);
Tailwind
colors: {
  custom: {
    50: '#8b76dc',
    500: '#4840cb',
    950: '#000000',
  },
}
SCSS
$custom: #4840cb;
$custom-light: #8b76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4840cb",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 243.453,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47294,
    "c": 0.20626,
    "h": 277.6
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

primary
#4840CB
secondary
#CED295
accent
#E047D8
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4840CB

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

Preview Lab → · Contrast checker → · Palette generator →

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