#4840B2#4840B2

#4840B2 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.174 H 279.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#4840B2
RGBrgb(72, 64, 178)
HSLhsl(244, 47%, 47%)
HSVhsv(244, 64%, 70%)
CMYKcmyk(59.6%, 64%, 0%, 30.2%)
CIE-LABlab(34.51, 36.80, -59.69)
CIE-LCHlch(34.51, 70.12, 301.65°)
OKLaboklab(45.08% 0.03 -0.1717)
OKLCHoklch(45.08% 0.174 279.9)
XYZxyz(12.5392, 8.2580, 43.0440)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840B2 #AAB240
analogous
#4071B2 #4840B2 #8140B2
triadic
#4840B2 #B24840 #40B248
tetradic
#4840B2 #B24071 #AAB240 #40B281
square
#4840B2 #B24071 #AAB240 #40B281
split-complementary
#4840B2 #B28140 #71B240
monochromatic
#242058 #363085 #4840B2 #6E67C8 #9994D8

Accessibility & contrast

On white

7.92
#4840B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4840B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840B2
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840B2#FFFFFF#000000##FFFFFF
##4840B21.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4840b2;
/* rgb */ color: rgb(72, 64, 178);
/* oklch */ color: oklch(45.1% 0.174 279.9);
Tailwind
colors: {
  custom: {
    50: '#8675ca',
    500: '#4840b2',
    950: '#000000',
  },
}
SCSS
$custom: #4840b2;
$custom-light: #8675ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4840b2",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 244.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4508,
    "c": 0.17435,
    "h": 279.9
  },
  "luminance": 0.08259
}

Semantic roles & 50–950 ramp

primary
#4840B2
secondary
#C0C48A
accent
#D751CD
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4840B2

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

Preview Lab → · Contrast checker → · Palette generator →

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