#4B40D3#4B40D3

#4B40D3 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.215 H 277.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4B40D3
RGBrgb(75, 64, 211)
HSLhsl(244, 63%, 54%)
HSVhsv(244, 70%, 83%)
CMYKcmyk(64.5%, 69.7%, 0%, 17.3%)
CIE-LABlab(37.60, 47.84, -73.94)
CIE-LCHlch(37.60, 88.06, 302.90°)
OKLaboklab(48.24% 0.0297 -0.2134)
OKLCHoklch(48.24% 0.215 277.9)
XYZxyz(16.4891, 9.8644, 62.6505)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40D3 #C8D340
analogous
#407FD3 #4B40D3 #9540D3
triadic
#4B40D3 #D34B40 #40D34B
tetradic
#4B40D3 #D3407F #C8D340 #40D395
square
#4B40D3 #D3407F #C8D340 #40D395
split-complementary
#4B40D3 #D39540 #7FD340
monochromatic
#241D7C #3228AE #4B40D3 #7A72DE #A9A3EA

Accessibility & contrast

On white

7.06
#4B40D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4B40D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40D3
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40D3#FFFFFF#000000##FFFFFF
##4B40D31.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED7
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4b40d3;
/* rgb */ color: rgb(75, 64, 211);
/* oklch */ color: oklch(48.2% 0.215 277.9);
Tailwind
colors: {
  custom: {
    50: '#8d76e2',
    500: '#4b40d3',
    950: '#000000',
  },
}
SCSS
$custom: #4b40d3;
$custom-light: #8d76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40d3",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 244.49,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48243,
    "c": 0.21547,
    "h": 277.9
  },
  "luminance": 0.09866
}

Semantic roles & 50–950 ramp

primary
#4B40D3
secondary
#D2D798
accent
#E642D9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4B40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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