#4B40E8#4B40E8

#4B40E8 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.2% C 0.240 H 276.2°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#4B40E8
RGBrgb(75, 64, 232)
HSLhsl(244, 79%, 58%)
HSVhsv(244, 72%, 91%)
CMYKcmyk(67.7%, 72.4%, 0%, 9%)
CIE-LABlab(39.56, 54.39, -82.73)
CIE-LCHlch(39.56, 99.00, 303.32°)
OKLaboklab(50.23% 0.0261 -0.2391)
OKLCHoklch(50.23% 0.241 276.2)
XYZxyz(19.2958, 10.9871, 77.4321)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40E8 #DDE840
analogous
#4089E8 #4B40E8 #9F40E8
triadic
#4B40E8 #E84B40 #40E84B
tetradic
#4B40E8 #E84089 #DDE840 #40E89F
square
#4B40E8 #E84089 #DDE840 #40E89F
split-complementary
#4B40E8 #E89F40 #89E840
monochromatic
#1C139B #2519D2 #4B40E8 #7E77EF #B2ADF5

Accessibility & contrast

On white

6.57
#4B40E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4B40E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B40E8
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40E8#FFFFFF#000000##FFFFFF
##4B40E81.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064ED
Deuteranopia (green-blind)
#0056E5
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4b40e8;
/* rgb */ color: rgb(75, 64, 232);
/* oklch */ color: oklch(50.2% 0.240 276.2);
Tailwind
colors: {
  custom: {
    50: '#9277f1',
    500: '#4b40e8',
    950: '#000000',
  },
}
SCSS
$custom: #4b40e8;
$custom-light: #9277f1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40e8",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 243.929,
    "s": 78.505,
    "l": 58.039
  },
  "oklch": {
    "l": 0.50234,
    "c": 0.2405,
    "h": 276.2
  },
  "luminance": 0.10989
}

Semantic roles & 50–950 ramp

primary
#4B40E8
secondary
#DFE3A0
accent
#F533E8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4B40E8

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

Preview Lab → · Contrast checker → · Palette generator →

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