#4D40C8#4D40C8

#4D40C8 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.202 H 279.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4D40C8
RGBrgb(77, 64, 200)
HSLhsl(246, 55%, 52%)
HSVhsv(246, 68%, 78%)
CMYKcmyk(61.5%, 68%, 0%, 21.6%)
CIE-LABlab(36.77, 44.63, -68.92)
CIE-LCHlch(36.77, 82.11, 302.93°)
OKLaboklab(47.39% 0.034 -0.1987)
OKLCHoklch(47.39% 0.202 279.7)
XYZxyz(15.3160, 9.4136, 55.6423)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40C8 #BBC840
analogous
#4077C8 #4D40C8 #9140C8
triadic
#4D40C8 #C84D40 #40C84D
tetradic
#4D40C8 #C84077 #BBC840 #40C891
square
#4D40C8 #C84077 #BBC840 #40C891
split-complementary
#4D40C8 #C89140 #77C840
monochromatic
#27206E #382D9D #4D40C8 #7970D6 #A69FE3

Accessibility & contrast

On white

7.28
#4D40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4D40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40C8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40C8#FFFFFF#000000##FFFFFF
##4D40C81.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d40c8;
/* rgb */ color: rgb(77, 64, 200);
/* oklch */ color: oklch(47.4% 0.202 279.7);
Tailwind
colors: {
  custom: {
    50: '#8c76da',
    500: '#4d40c8',
    950: '#000000',
  },
}
SCSS
$custom: #4d40c8;
$custom-light: #8c76da;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40c8",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 245.735,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47387,
    "c": 0.20155,
    "h": 279.7
  },
  "luminance": 0.09415
}

Semantic roles & 50–950 ramp

primary
#4D40C8
secondary
#CAD094
accent
#DF49D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4D40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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