#4B40D2#4B40D2

#4B40D2 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.214 H 278.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#4B40D2
RGBrgb(75, 64, 210)
HSLhsl(245, 62%, 54%)
HSVhsv(245, 70%, 82%)
CMYKcmyk(64.3%, 69.5%, 0%, 17.6%)
CIE-LABlab(37.51, 47.52, -73.51)
CIE-LCHlch(37.51, 87.53, 302.88°)
OKLaboklab(48.15% 0.0299 -0.2121)
OKLCHoklch(48.15% 0.214 278)
XYZxyz(16.3642, 9.8144, 61.9923)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40D2 #C7D240
analogous
#407ED2 #4B40D2 #9440D2
triadic
#4B40D2 #D24B40 #40D24B
tetradic
#4B40D2 #D2407E #C7D240 #40D294
square
#4B40D2 #D2407E #C7D240 #40D294
split-complementary
#4B40D2 #D29440 #7ED240
monochromatic
#241D7B #3229AC #4B40D2 #7A72DE #A8A3E9

Accessibility & contrast

On white

7.09
#4B40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4B40D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40D2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40D2#FFFFFF#000000##FFFFFF
##4B40D21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0052CF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4b40d2;
/* rgb */ color: rgb(75, 64, 210);
/* oklch */ color: oklch(48.2% 0.214 278.0);
Tailwind
colors: {
  custom: {
    50: '#8d76e1',
    500: '#4b40d2',
    950: '#000000',
  },
}
SCSS
$custom: #4b40d2;
$custom-light: #8d76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40d2",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 244.521,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48151,
    "c": 0.21425,
    "h": 278
  },
  "luminance": 0.09816
}

Semantic roles & 50–950 ramp

primary
#4B40D2
secondary
#D1D698
accent
#E543D9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4B40D2

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

Preview Lab → · Contrast checker → · Palette generator →

#4B40D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva