#4D40C4#4D40C4

#4D40C4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 47.0% C 0.197 H 280.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#4D40C4
RGBrgb(77, 64, 196)
HSLhsl(246, 53%, 51%)
HSVhsv(246, 67%, 77%)
CMYKcmyk(60.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(36.42, 43.37, -67.15)
CIE-LCHlch(36.42, 79.94, 302.86°)
OKLaboklab(47.03% 0.0345 -0.1935)
OKLCHoklch(47.03% 0.197 280.1)
XYZxyz(14.8546, 9.2290, 53.2124)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40C4 #B7C440
analogous
#4075C4 #4D40C4 #8F40C4
triadic
#4D40C4 #C44D40 #40C44D
tetradic
#4D40C4 #C44075 #B7C440 #40C48F
square
#4D40C4 #C44075 #B7C440 #40C48F
split-complementary
#4D40C4 #C48F40 #75C440
monochromatic
#282069 #392F98 #4D40C4 #796FD2 #A49EE1

Accessibility & contrast

On white

7.38
#4D40C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4D40C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40C4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40C4#FFFFFF#000000##FFFFFF
##4D40C41.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#00627D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d40c4;
/* rgb */ color: rgb(77, 64, 196);
/* oklch */ color: oklch(47.0% 0.197 280.1);
Tailwind
colors: {
  custom: {
    50: '#8c76d7',
    500: '#4d40c4',
    950: '#000000',
  },
}
SCSS
$custom: #4d40c4;
$custom-light: #8c76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40c4",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 245.909,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4703,
    "c": 0.19655,
    "h": 280.1
  },
  "luminance": 0.0923
}

Semantic roles & 50–950 ramp

primary
#4D40C4
secondary
#C7CD93
accent
#DC4CCE
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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