#4B40CB#4B40CB

#4B40CB is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.206 H 278.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#4B40CB
RGBrgb(75, 64, 203)
HSLhsl(245, 57%, 52%)
HSVhsv(245, 68%, 80%)
CMYKcmyk(63.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.88, 45.31, -70.49)
CIE-LCHlch(36.88, 83.79, 302.73°)
OKLaboklab(47.51% 0.031 -0.2033)
OKLCHoklch(47.51% 0.206 278.7)
XYZxyz(15.5111, 9.4732, 57.4995)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40CB #C0CB40
analogous
#407BCB #4B40CB #9040CB
triadic
#4B40CB #CB4B40 #40CB4B
tetradic
#4B40CB #CB407B #C0CB40 #40CB90
square
#4B40CB #CB407B #C0CB40 #40CB90
split-complementary
#4B40CB #CB9040 #7BCB40
monochromatic
#251F72 #352CA2 #4B40CB #7870D8 #A6A0E5

Accessibility & contrast

On white

7.25
#4B40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4B40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40CB
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40CB#FFFFFF#000000##FFFFFF
##4B40CB1.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4b40cb;
/* rgb */ color: rgb(75, 64, 203);
/* oklch */ color: oklch(47.5% 0.206 278.7);
Tailwind
colors: {
  custom: {
    50: '#8c76dc',
    500: '#4b40cb',
    950: '#000000',
  },
}
SCSS
$custom: #4b40cb;
$custom-light: #8c76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40cb",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 244.748,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47509,
    "c": 0.20565,
    "h": 278.7
  },
  "luminance": 0.09474
}

Semantic roles & 50–950 ramp

primary
#4B40CB
secondary
#CDD295
accent
#E047D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4B40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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