#4D40C6#4D40C6

#4D40C6 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.2% C 0.199 H 279.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#4D40C6
RGBrgb(77, 64, 198)
HSLhsl(246, 54%, 51%)
HSVhsv(246, 68%, 78%)
CMYKcmyk(61.1%, 67.7%, 0%, 22.4%)
CIE-LABlab(36.59, 44.00, -68.04)
CIE-LCHlch(36.59, 81.03, 302.89°)
OKLaboklab(47.21% 0.0343 -0.1961)
OKLCHoklch(47.21% 0.199 279.9)
XYZxyz(15.0838, 9.3207, 54.4193)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40C6 #B9C640
analogous
#4076C6 #4D40C6 #9040C6
triadic
#4D40C6 #C64D40 #40C64D
tetradic
#4D40C6 #C64076 #B9C640 #40C690
square
#4D40C6 #C64076 #B9C640 #40C690
split-complementary
#4D40C6 #C69040 #76C640
monochromatic
#27206C #392E9B #4D40C6 #796FD4 #A59EE2

Accessibility & contrast

On white

7.33
#4D40C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4D40C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40C6
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40C6#FFFFFF#000000##FFFFFF
##4D40C61.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d40c6;
/* rgb */ color: rgb(77, 64, 198);
/* oklch */ color: oklch(47.2% 0.199 279.9);
Tailwind
colors: {
  custom: {
    50: '#8c76d8',
    500: '#4d40c6',
    950: '#000000',
  },
}
SCSS
$custom: #4d40c6;
$custom-light: #8c76d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40c6",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 245.821,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47208,
    "c": 0.19905,
    "h": 279.9
  },
  "luminance": 0.09322
}

Semantic roles & 50–950 ramp

primary
#4D40C6
secondary
#C9CE93
accent
#DD4ACF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4D40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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