#4B40CE#4B40CE

#4B40CE is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.209 H 278.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#4B40CE
RGBrgb(75, 64, 206)
HSLhsl(245, 59%, 53%)
HSVhsv(245, 69%, 81%)
CMYKcmyk(63.6%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.15, 46.26, -71.79)
CIE-LCHlch(37.15, 85.40, 302.80°)
OKLaboklab(47.78% 0.0305 -0.2071)
OKLCHoklch(47.78% 0.209 278.4)
XYZxyz(15.8720, 9.6176, 59.4005)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40CE #C3CE40
analogous
#407CCE #4B40CE #9240CE
triadic
#4B40CE #CE4B40 #40CE4B
tetradic
#4B40CE #CE407C #C3CE40 #40CE92
square
#4B40CE #CE407C #C3CE40 #40CE92
split-complementary
#4B40CE #CE9240 #7CCE40
monochromatic
#251E75 #342BA6 #4B40CE #7971DA #A7A1E7

Accessibility & contrast

On white

7.18
#4B40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4B40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40CE
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40CE#FFFFFF#000000##FFFFFF
##4B40CE1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4b40ce;
/* rgb */ color: rgb(75, 64, 206);
/* oklch */ color: oklch(47.8% 0.209 278.4);
Tailwind
colors: {
  custom: {
    50: '#8d76de',
    500: '#4b40ce',
    950: '#000000',
  },
}
SCSS
$custom: #4b40ce;
$custom-light: #8d76de;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40ce",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 244.648,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47783,
    "c": 0.20935,
    "h": 278.4
  },
  "luminance": 0.09619
}

Semantic roles & 50–950 ramp

primary
#4B40CE
secondary
#CFD496
accent
#E245D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4B40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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