#4840CD#4840CD

#4840CD is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.209 H 277.4°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#4840CD
RGBrgb(72, 64, 205)
HSLhsl(243, 59%, 53%)
HSVhsv(243, 69%, 80%)
CMYKcmyk(64.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(36.84, 45.55, -71.72)
CIE-LCHlch(36.84, 84.96, 302.42°)
OKLaboklab(47.48% 0.0269 -0.207)
OKLCHoklch(47.48% 0.209 277.4)
XYZxyz(15.5218, 9.4510, 58.7520)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840CD #C5CD40
analogous
#407FCD #4840CD #8E40CD
triadic
#4840CD #CD4840 #40CD48
tetradic
#4840CD #CD407F #C5CD40 #40CD8E
square
#4840CD #CD407F #C5CD40 #40CD8E
split-complementary
#4840CD #CD8E40 #7FCD40
monochromatic
#231E74 #322BA5 #4840CD #7671DA #A5A1E6

Accessibility & contrast

On white

7.27
#4840CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4840CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840CD
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840CD#FFFFFF#000000##FFFFFF
##4840CD1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4840cd;
/* rgb */ color: rgb(72, 64, 205);
/* oklch */ color: oklch(47.5% 0.209 277.4);
Tailwind
colors: {
  custom: {
    50: '#8b76dd',
    500: '#4840cd',
    950: '#000000',
  },
}
SCSS
$custom: #4840cd;
$custom-light: #8b76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4840cd",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 243.404,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47478,
    "c": 0.20875,
    "h": 277.4
  },
  "luminance": 0.09452
}

Semantic roles & 50–950 ramp

primary
#4840CD
secondary
#CFD396
accent
#E246D9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4840CD

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

Preview Lab → · Contrast checker → · Palette generator →

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