#4D40BE#4D40BE

#4D40BE is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.189 H 280.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4D40BE
RGBrgb(77, 64, 190)
HSLhsl(246, 50%, 50%)
HSVhsv(246, 66%, 75%)
CMYKcmyk(59.5%, 66.3%, 0%, 25.5%)
CIE-LABlab(35.91, 41.47, -64.48)
CIE-LCHlch(35.91, 76.66, 302.75°)
OKLaboklab(46.5% 0.0353 -0.1856)
OKLCHoklch(46.5% 0.189 280.8)
XYZxyz(14.1853, 8.9613, 49.6874)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40BE #B1BE40
analogous
#4072BE #4D40BE #8C40BE
triadic
#4D40BE #BE4D40 #40BE4D
tetradic
#4D40BE #BE4072 #B1BE40 #40BE8C
square
#4D40BE #BE4072 #B1BE40 #40BE8C
split-complementary
#4D40BE #BE8C40 #72BE40
monochromatic
#282162 #3A3190 #4D40BE #776DCE #A29BDD

Accessibility & contrast

On white

7.52
#4D40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4D40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40BE
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40BE#FFFFFF#000000##FFFFFF
##4D40BE1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#006079
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4d40be;
/* rgb */ color: rgb(77, 64, 190);
/* oklch */ color: oklch(46.5% 0.189 280.8);
Tailwind
colors: {
  custom: {
    50: '#8b76d3',
    500: '#4d40be',
    950: '#000000',
  },
}
SCSS
$custom: #4d40be;
$custom-light: #8b76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40be",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 246.19,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46503,
    "c": 0.18897,
    "h": 280.8
  },
  "luminance": 0.08962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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