#4D40C3#4D40C3

#4D40C3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.9% C 0.195 H 280.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4D40C3
RGBrgb(77, 64, 195)
HSLhsl(246, 52%, 51%)
HSVhsv(246, 67%, 76%)
CMYKcmyk(60.5%, 67.2%, 0%, 23.5%)
CIE-LABlab(36.34, 43.05, -66.71)
CIE-LCHlch(36.34, 79.40, 302.84°)
OKLaboklab(46.94% 0.0347 -0.1922)
OKLCHoklch(46.94% 0.195 280.2)
XYZxyz(14.7412, 9.1836, 52.6150)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40C3 #B6C340
analogous
#4074C3 #4D40C3 #8E40C3
triadic
#4D40C3 #C34D40 #40C34D
tetradic
#4D40C3 #C34074 #B6C340 #40C38E
square
#4D40C3 #C34074 #B6C340 #40C38E
split-complementary
#4D40C3 #C38E40 #74C340
monochromatic
#282168 #3A2F97 #4D40C3 #786FD2 #A49DE0

Accessibility & contrast

On white

7.40
#4D40C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4D40C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40C3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40C3#FFFFFF#000000##FFFFFF
##4D40C31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4d40c3;
/* rgb */ color: rgb(77, 64, 195);
/* oklch */ color: oklch(46.9% 0.195 280.2);
Tailwind
colors: {
  custom: {
    50: '#8c76d6',
    500: '#4d40c3',
    950: '#000000',
  },
}
SCSS
$custom: #4d40c3;
$custom-light: #8c76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40c3",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 245.954,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46942,
    "c": 0.19529,
    "h": 280.2
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#4D40C3
secondary
#C7CC92
accent
#DC4CCD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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