#4D40CF#4D40CF

#4D40CF is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.210 H 279.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#4D40CF
RGBrgb(77, 64, 207)
HSLhsl(245, 60%, 53%)
HSVhsv(245, 69%, 81%)
CMYKcmyk(62.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.39, 46.84, -71.97)
CIE-LCHlch(37.39, 85.87, 303.06°)
OKLaboklab(48.02% 0.0329 -0.2076)
OKLCHoklch(48.02% 0.21 279)
XYZxyz(16.1528, 9.7483, 60.0498)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40CF #C2CF40
analogous
#407ACF #4D40CF #9540CF
triadic
#4D40CF #CF4D40 #40CF4D
tetradic
#4D40CF #CF407A #C2CF40 #40CF95
square
#4D40CF #CF407A #C2CF40 #40CF95
split-complementary
#4D40CF #CF9540 #7ACF40
monochromatic
#261E77 #362AA8 #4D40CF #7B71DB #A8A2E8

Accessibility & contrast

On white

7.12
#4D40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4D40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40CF
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40CF#FFFFFF#000000##FFFFFF
##4D40CF1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#006683
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4d40cf;
/* rgb */ color: rgb(77, 64, 207);
/* oklch */ color: oklch(48.0% 0.210 279.0);
Tailwind
colors: {
  custom: {
    50: '#8e76df',
    500: '#4d40cf',
    950: '#000000',
  },
}
SCSS
$custom: #4d40cf;
$custom-light: #8e76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40cf",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 245.455,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4802,
    "c": 0.21019,
    "h": 279
  },
  "luminance": 0.0975
}

Semantic roles & 50–950 ramp

primary
#4D40CF
secondary
#CFD497
accent
#E345D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4D40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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