#4D40BD#4D40BD

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

Color values

HEX#4D40BD
RGBrgb(77, 64, 189)
HSLhsl(246, 49%, 50%)
HSVhsv(246, 66%, 74%)
CMYKcmyk(59.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.83, 41.15, -64.03)
CIE-LCHlch(35.83, 76.11, 302.73°)
OKLaboklab(46.42% 0.0354 -0.1843)
OKLCHoklch(46.42% 0.188 280.9)
XYZxyz(14.0764, 8.9177, 49.1138)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40BD #B0BD40
analogous
#4072BD #4D40BD #8C40BD
triadic
#4D40BD #BD4D40 #40BD4D
tetradic
#4D40BD #BD4072 #B0BD40 #40BD8C
square
#4D40BD #BD4072 #B0BD40 #40BD8C
split-complementary
#4D40BD #BD8C40 #72BD40
monochromatic
#282162 #3A318F #4D40BD #776DCD #A19ADD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D40BD#FFFFFF#000000##FFFFFF
##4D40BD1.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)
#0059C1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#006079
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4d40bd;
/* rgb */ color: rgb(77, 64, 189);
/* oklch */ color: oklch(46.4% 0.188 280.9);
Tailwind
colors: {
  custom: {
    50: '#8a76d2',
    500: '#4d40bd',
    950: '#000000',
  },
}
SCSS
$custom: #4d40bd;
$custom-light: #8a76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40bd",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 246.24,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46416,
    "c": 0.18769,
    "h": 280.9
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#4D40BD
secondary
#C3C990
accent
#D94FCB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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