#4B40E6#4B40E6

#4B40E6 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.238 H 276.4°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#4B40E6
RGBrgb(75, 64, 230)
HSLhsl(244, 77%, 58%)
HSVhsv(244, 72%, 90%)
CMYKcmyk(67.4%, 72.2%, 0%, 9.8%)
CIE-LABlab(39.37, 53.77, -81.91)
CIE-LCHlch(39.37, 97.98, 303.28°)
OKLaboklab(50.04% 0.0264 -0.2367)
OKLCHoklch(50.04% 0.238 276.4)
XYZxyz(19.0133, 10.8741, 75.9445)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40E6 #DBE640
analogous
#4088E6 #4B40E6 #9E40E6
triadic
#4B40E6 #E64B40 #40E64B
tetradic
#4B40E6 #E64088 #DBE640 #40E69E
square
#4B40E6 #E64088 #DBE640 #40E69E
split-complementary
#4B40E6 #E69E40 #88E640
monochromatic
#1D1498 #271BCE #4B40E6 #7E76ED #B1ACF4

Accessibility & contrast

On white

6.61
#4B40E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#4B40E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B40E6
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40E6#FFFFFF#000000##FFFFFF
##4B40E61.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EB
Deuteranopia (green-blind)
#0055E3
Tritanopia (blue-blind)
#006F8F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4b40e6;
/* rgb */ color: rgb(75, 64, 230);
/* oklch */ color: oklch(50.0% 0.238 276.4);
Tailwind
colors: {
  custom: {
    50: '#9177ef',
    500: '#4b40e6',
    950: '#000000',
  },
}
SCSS
$custom: #4b40e6;
$custom-light: #9177ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40e6",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 243.976,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.50041,
    "c": 0.23815,
    "h": 276.4
  },
  "luminance": 0.10876
}

Semantic roles & 50–950 ramp

primary
#4B40E6
secondary
#DEE29F
accent
#F334E7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4B40E6

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

Preview Lab → · Contrast checker → · Palette generator →

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