#4B40BC#4B40BC

#4B40BC is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.2% C 0.187 H 280.2°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#4B40BC
RGBrgb(75, 64, 188)
HSLhsl(245, 49%, 49%)
HSVhsv(245, 66%, 74%)
CMYKcmyk(60.1%, 66%, 0%, 26.3%)
CIE-LABlab(35.58, 40.52, -63.85)
CIE-LCHlch(35.58, 75.62, 302.40°)
OKLaboklab(46.17% 0.0329 -0.1838)
OKLCHoklch(46.17% 0.187 280.2)
XYZxyz(13.8093, 8.7925, 48.5366)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40BC #B1BC40
analogous
#4073BC #4B40BC #8940BC
triadic
#4B40BC #BC4B40 #40BC4B
tetradic
#4B40BC #BC4073 #B1BC40 #40BC89
square
#4B40BC #BC4073 #B1BC40 #40BC89
split-complementary
#4B40BC #BC8940 #73BC40
monochromatic
#272161 #39308E #4B40BC #756CCD #A09ADD

Accessibility & contrast

On white

7.61
#4B40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4B40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40BC
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40BC#FFFFFF#000000##FFFFFF
##4B40BC1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4b40bc;
/* rgb */ color: rgb(75, 64, 188);
/* oklch */ color: oklch(46.2% 0.187 280.2);
Tailwind
colors: {
  custom: {
    50: '#8976d1',
    500: '#4b40bc',
    950: '#000000',
  },
}
SCSS
$custom: #4b40bc;
$custom-light: #8976d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40bc",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 245.323,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46173,
    "c": 0.18677,
    "h": 280.2
  },
  "luminance": 0.08793
}

Semantic roles & 50–950 ramp

primary
#4B40BC
secondary
#C3C98F
accent
#D94FCD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4B40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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