#4B40BB#4B40BB

#4B40BB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.185 H 280.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#4B40BB
RGBrgb(75, 64, 187)
HSLhsl(245, 49%, 49%)
HSVhsv(245, 66%, 73%)
CMYKcmyk(59.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(35.50, 40.20, -63.40)
CIE-LCHlch(35.50, 75.07, 302.38°)
OKLaboklab(46.09% 0.033 -0.1825)
OKLCHoklch(46.09% 0.185 280.3)
XYZxyz(13.7019, 8.7495, 47.9709)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40BB #B0BB40
analogous
#4073BB #4B40BB #8940BB
triadic
#4B40BB #BB4B40 #40BB4B
tetradic
#4B40BB #BB4073 #B0BB40 #40BB89
square
#4B40BB #BB4073 #B0BB40 #40BB89
split-complementary
#4B40BB #BB8940 #73BB40
monochromatic
#262160 #39308D #4B40BB #746CCD #9F99DC

Accessibility & contrast

On white

7.64
#4B40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4B40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40BB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40BB#FFFFFF#000000##FFFFFF
##4B40BB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#005F78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4b40bb;
/* rgb */ color: rgb(75, 64, 187);
/* oklch */ color: oklch(46.1% 0.185 280.3);
Tailwind
colors: {
  custom: {
    50: '#8976d0',
    500: '#4b40bb',
    950: '#000000',
  },
}
SCSS
$custom: #4b40bb;
$custom-light: #8976d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40bb",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 245.366,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46086,
    "c": 0.18549,
    "h": 280.3
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#4B40BB
secondary
#C3C88F
accent
#D94FCC
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4B40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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