#4D40BB#4D40BB

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

Color values

HEX#4D40BB
RGBrgb(77, 64, 187)
HSLhsl(246, 49%, 49%)
HSVhsv(246, 66%, 73%)
CMYKcmyk(58.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(35.66, 40.52, -63.13)
CIE-LCHlch(35.66, 75.01, 302.69°)
OKLaboklab(46.24% 0.0357 -0.1817)
OKLCHoklch(46.24% 0.185 281.1)
XYZxyz(13.8608, 8.8315, 47.9783)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40BB #AEBB40
analogous
#4071BB #4D40BB #8A40BB
triadic
#4D40BB #BB4D40 #40BB4D
tetradic
#4D40BB #BB4071 #AEBB40 #40BB8A
square
#4D40BB #BB4071 #AEBB40 #40BB8A
split-complementary
#4D40BB #BB8A40 #71BB40
monochromatic
#272160 #3A308D #4D40BB #766CCD #A099DC

Accessibility & contrast

On white

7.59
#4D40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4D40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40BB
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40BB#FFFFFF#000000##FFFFFF
##4D40BB1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d40bb;
/* rgb */ color: rgb(77, 64, 187);
/* oklch */ color: oklch(46.2% 0.185 281.1);
Tailwind
colors: {
  custom: {
    50: '#8a76d0',
    500: '#4d40bb',
    950: '#000000',
  },
}
SCSS
$custom: #4d40bb;
$custom-light: #8a76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40bb",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 246.341,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46242,
    "c": 0.18514,
    "h": 281.1
  },
  "luminance": 0.08832
}

Semantic roles & 50–950 ramp

primary
#4D40BB
secondary
#C2C88F
accent
#D94FCA
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4D40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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