#4B40BF#4B40BF

#4B40BF is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.4% C 0.191 H 279.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#4B40BF
RGBrgb(75, 64, 191)
HSLhsl(245, 50%, 50%)
HSVhsv(245, 66%, 75%)
CMYKcmyk(60.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.84, 41.48, -65.19)
CIE-LCHlch(35.84, 77.27, 302.47°)
OKLaboklab(46.44% 0.0326 -0.1878)
OKLCHoklch(46.44% 0.191 279.8)
XYZxyz(14.1360, 8.9232, 50.2575)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40BF #B4BF40
analogous
#4074BF #4B40BF #8B40BF
triadic
#4B40BF #BF4B40 #40BF4B
tetradic
#4B40BF #BF4074 #B4BF40 #40BF8B
square
#4B40BF #BF4074 #B4BF40 #40BF8B
split-complementary
#4B40BF #BF8B40 #74BF40
monochromatic
#272163 #393191 #4B40BF #766ECE #A19CDE

Accessibility & contrast

On white

7.54
#4B40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4B40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40BF
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40BF#FFFFFF#000000##FFFFFF
##4B40BF1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4b40bf;
/* rgb */ color: rgb(75, 64, 191);
/* oklch */ color: oklch(46.4% 0.191 279.8);
Tailwind
colors: {
  custom: {
    50: '#8a76d3',
    500: '#4b40bf',
    950: '#000000',
  },
}
SCSS
$custom: #4b40bf;
$custom-light: #8a76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40bf",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 245.197,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46436,
    "c": 0.1906,
    "h": 279.8
  },
  "luminance": 0.08924
}

Semantic roles & 50–950 ramp

primary
#4B40BF
secondary
#C5CA91
accent
#D94ECD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4B40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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