#4D40C2#4D40C2

#4D40C2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.9% C 0.194 H 280.3°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#4D40C2
RGBrgb(77, 64, 194)
HSLhsl(246, 52%, 51%)
HSVhsv(246, 67%, 76%)
CMYKcmyk(60.3%, 67%, 0%, 23.9%)
CIE-LABlab(36.25, 42.74, -66.27)
CIE-LCHlch(36.25, 78.85, 302.82°)
OKLaboklab(46.85% 0.0348 -0.1909)
OKLCHoklch(46.85% 0.194 280.3)
XYZxyz(14.6285, 9.1386, 52.0215)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40C2 #B5C240
analogous
#4074C2 #4D40C2 #8E40C2
triadic
#4D40C2 #C24D40 #40C24D
tetradic
#4D40C2 #C24074 #B5C240 #40C28E
square
#4D40C2 #C24074 #B5C240 #40C28E
split-complementary
#4D40C2 #C28E40 #74C240
monochromatic
#282167 #3A3095 #4D40C2 #786ED1 #A39DE0

Accessibility & contrast

On white

7.43
#4D40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4D40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40C2
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40C2#FFFFFF#000000##FFFFFF
##4D40C21.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4d40c2;
/* rgb */ color: rgb(77, 64, 194);
/* oklch */ color: oklch(46.9% 0.194 280.3);
Tailwind
colors: {
  custom: {
    50: '#8b76d5',
    500: '#4d40c2',
    950: '#000000',
  },
}
SCSS
$custom: #4d40c2;
$custom-light: #8b76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40c2",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 246,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46853,
    "c": 0.19403,
    "h": 280.3
  },
  "luminance": 0.0914
}

Semantic roles & 50–950 ramp

primary
#4D40C2
secondary
#C6CC92
accent
#DB4DCD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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