#4D40CB#4D40CB

#4D40CB is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.205 H 279.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#4D40CB
RGBrgb(77, 64, 203)
HSLhsl(246, 57%, 52%)
HSVhsv(246, 68%, 80%)
CMYKcmyk(62.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.03, 45.58, -70.23)
CIE-LCHlch(37.03, 83.72, 302.98°)
OKLaboklab(47.66% 0.0335 -0.2025)
OKLCHoklch(47.66% 0.205 279.4)
XYZxyz(15.6700, 9.5552, 57.5069)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40CB #BECB40
analogous
#4078CB #4D40CB #9340CB
triadic
#4D40CB #CB4D40 #40CB4D
tetradic
#4D40CB #CB4078 #BECB40 #40CB93
square
#4D40CB #CB4078 #BECB40 #40CB93
split-complementary
#4D40CB #CB9340 #78CB40
monochromatic
#271F72 #372CA2 #4D40CB #7A70D8 #A7A0E5

Accessibility & contrast

On white

7.21
#4D40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4D40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40CB
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40CB#FFFFFF#000000##FFFFFF
##4D40CB1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4d40cb;
/* rgb */ color: rgb(77, 64, 203);
/* oklch */ color: oklch(47.7% 0.205 279.4);
Tailwind
colors: {
  custom: {
    50: '#8d76dc',
    500: '#4d40cb',
    950: '#000000',
  },
}
SCSS
$custom: #4d40cb;
$custom-light: #8d76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40cb",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 245.612,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47657,
    "c": 0.20526,
    "h": 279.4
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#4D40CB
secondary
#CCD295
accent
#E047D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4D40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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