#4840CF#4840CF

#4840CF is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.211 H 277.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#4840CF
RGBrgb(72, 64, 207)
HSLhsl(243, 60%, 53%)
HSVhsv(243, 69%, 81%)
CMYKcmyk(65.2%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.02, 46.19, -72.59)
CIE-LCHlch(37.02, 86.03, 302.47°)
OKLaboklab(47.66% 0.0266 -0.2095)
OKLCHoklch(47.66% 0.211 277.2)
XYZxyz(15.7647, 9.5482, 60.0316)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840CF #C7CF40
analogous
#407FCF #4840CF #9040CF
triadic
#4840CF #CF4840 #40CF48
tetradic
#4840CF #CF407F #C7CF40 #40CF90
square
#4840CF #CF407F #C7CF40 #40CF90
split-complementary
#4840CF #CF9040 #7FCF40
monochromatic
#231E77 #312AA8 #4840CF #7771DB #A6A2E8

Accessibility & contrast

On white

7.22
#4840CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4840CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840CF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840CF#FFFFFF#000000##FFFFFF
##4840CF1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4840cf;
/* rgb */ color: rgb(72, 64, 207);
/* oklch */ color: oklch(47.7% 0.211 277.2);
Tailwind
colors: {
  custom: {
    50: '#8b76df',
    500: '#4840cf',
    950: '#000000',
  },
}
SCSS
$custom: #4840cf;
$custom-light: #8b76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4840cf",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 243.357,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47662,
    "c": 0.21121,
    "h": 277.2
  },
  "luminance": 0.0955
}

Semantic roles & 50–950 ramp

primary
#4840CF
secondary
#D1D497
accent
#E345DA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4840CF

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

Preview Lab → · Contrast checker → · Palette generator →

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