#4B40CF#4B40CF

#4B40CF is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.211 H 278.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#4B40CF
RGBrgb(75, 64, 207)
HSLhsl(245, 60%, 53%)
HSVhsv(245, 69%, 81%)
CMYKcmyk(63.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.24, 46.57, -72.22)
CIE-LCHlch(37.24, 85.93, 302.82°)
OKLaboklab(47.88% 0.0304 -0.2084)
OKLCHoklch(47.88% 0.211 278.3)
XYZxyz(15.9939, 9.6663, 60.0423)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40CF #C4CF40
analogous
#407DCF #4B40CF #9240CF
triadic
#4B40CF #CF4B40 #40CF4B
tetradic
#4B40CF #CF407D #C4CF40 #40CF92
square
#4B40CF #CF407D #C4CF40 #40CF92
split-complementary
#4B40CF #CF9240 #7DCF40
monochromatic
#251E77 #342AA8 #4B40CF #7971DB #A7A2E8

Accessibility & contrast

On white

7.16
#4B40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4B40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40CF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40CF#FFFFFF#000000##FFFFFF
##4B40CF1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4b40cf;
/* rgb */ color: rgb(75, 64, 207);
/* oklch */ color: oklch(47.9% 0.211 278.3);
Tailwind
colors: {
  custom: {
    50: '#8d76df',
    500: '#4b40cf',
    950: '#000000',
  },
}
SCSS
$custom: #4b40cf;
$custom-light: #8d76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40cf",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 244.615,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47875,
    "c": 0.21058,
    "h": 278.3
  },
  "luminance": 0.09668
}

Semantic roles & 50–950 ramp

primary
#4B40CF
secondary
#CFD497
accent
#E345D7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4B40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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