#4D40BC#4D40BC

#4D40BC is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.186 H 281.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#4D40BC
RGBrgb(77, 64, 188)
HSLhsl(246, 49%, 49%)
HSVhsv(246, 66%, 74%)
CMYKcmyk(59%, 66%, 0%, 26.3%)
CIE-LABlab(35.74, 40.83, -63.58)
CIE-LCHlch(35.74, 75.56, 302.71°)
OKLaboklab(46.33% 0.0356 -0.183)
OKLCHoklch(46.33% 0.186 281)
XYZxyz(13.9682, 8.8745, 48.5441)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40BC #AFBC40
analogous
#4071BC #4D40BC #8B40BC
triadic
#4D40BC #BC4D40 #40BC4D
tetradic
#4D40BC #BC4071 #AFBC40 #40BC8B
square
#4D40BC #BC4071 #AFBC40 #40BC8B
split-complementary
#4D40BC #BC8B40 #71BC40
monochromatic
#282161 #3A308E #4D40BC #766CCD #A19ADD

Accessibility & contrast

On white

7.57
#4D40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D40BC
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40BC#FFFFFF#000000##FFFFFF
##4D40BC1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4d40bc;
/* rgb */ color: rgb(77, 64, 188);
/* oklch */ color: oklch(46.3% 0.186 281.0);
Tailwind
colors: {
  custom: {
    50: '#8a76d1',
    500: '#4d40bc',
    950: '#000000',
  },
}
SCSS
$custom: #4d40bc;
$custom-light: #8a76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40bc",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 246.29,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46329,
    "c": 0.18642,
    "h": 281
  },
  "luminance": 0.08875
}

Semantic roles & 50–950 ramp

primary
#4D40BC
secondary
#C3C98F
accent
#D94FCA
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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