#4B40B7#4B40B7

#4B40B7 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.180 H 280.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#4B40B7
RGBrgb(75, 64, 183)
HSLhsl(246, 48%, 48%)
HSVhsv(246, 65%, 72%)
CMYKcmyk(59%, 65%, 0%, 28.2%)
CIE-LABlab(35.16, 38.91, -61.58)
CIE-LCHlch(35.16, 72.85, 302.29°)
OKLaboklab(45.74% 0.0335 -0.1772)
OKLCHoklch(45.74% 0.18 280.7)
XYZxyz(13.2796, 8.5806, 45.7470)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40B7 #ACB740
analogous
#4070B7 #4B40B7 #8640B7
triadic
#4B40B7 #B74B40 #40B74B
tetradic
#4B40B7 #B74070 #ACB740 #40B786
square
#4B40B7 #B74070 #ACB740 #40B786
split-complementary
#4B40B7 #B78640 #70B740
monochromatic
#26205C #38308A #4B40B7 #7269CB #9D97DB

Accessibility & contrast

On white

7.73
#4B40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4B40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40B7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40B7#FFFFFF#000000##FFFFFF
##4B40B71.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4b40b7;
/* rgb */ color: rgb(75, 64, 183);
/* oklch */ color: oklch(45.7% 0.180 280.7);
Tailwind
colors: {
  custom: {
    50: '#8876ce',
    500: '#4b40b7',
    950: '#000000',
  },
}
SCSS
$custom: #4b40b7;
$custom-light: #8876ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40b7",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 245.546,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4574,
    "c": 0.18033,
    "h": 280.7
  },
  "luminance": 0.08582
}

Semantic roles & 50–950 ramp

primary
#4B40B7
secondary
#C1C68D
accent
#D850CB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0814
muted
#7D7B82

Preview Lab

Preview with #4B40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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