#4D40C0#4D40C0

#4D40C0 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.7% C 0.192 H 280.5°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4D40C0
RGBrgb(77, 64, 192)
HSLhsl(246, 50%, 50%)
HSVhsv(246, 67%, 75%)
CMYKcmyk(59.9%, 66.7%, 0%, 24.7%)
CIE-LABlab(36.08, 42.10, -65.37)
CIE-LCHlch(36.08, 77.76, 302.78°)
OKLaboklab(46.68% 0.0351 -0.1883)
OKLCHoklch(46.68% 0.192 280.5)
XYZxyz(14.4054, 9.0493, 50.8465)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40C0 #B3C040
analogous
#4073C0 #4D40C0 #8D40C0
triadic
#4D40C0 #C04D40 #40C04D
tetradic
#4D40C0 #C04073 #B3C040 #40C08D
square
#4D40C0 #C04073 #B3C040 #40C08D
split-complementary
#4D40C0 #C08D40 #73C040
monochromatic
#282164 #3A3092 #4D40C0 #786ECF #A39CDE

Accessibility & contrast

On white

7.47
#4D40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4D40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40C0
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40C0#FFFFFF#000000##FFFFFF
##4D40C01.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4d40c0;
/* rgb */ color: rgb(77, 64, 192);
/* oklch */ color: oklch(46.7% 0.192 280.5);
Tailwind
colors: {
  custom: {
    50: '#8b76d4',
    500: '#4d40c0',
    950: '#000000',
  },
}
SCSS
$custom: #4d40c0;
$custom-light: #8b76d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40c0",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 246.094,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46677,
    "c": 0.19151,
    "h": 280.5
  },
  "luminance": 0.0905
}

Semantic roles & 50–950 ramp

primary
#4D40C0
secondary
#C5CB91
accent
#DA4ECC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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