#4B40CC#4B40CC

#4B40CC is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.207 H 278.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#4B40CC
RGBrgb(75, 64, 204)
HSLhsl(245, 58%, 53%)
HSVhsv(245, 69%, 80%)
CMYKcmyk(63.2%, 68.6%, 0%, 20%)
CIE-LABlab(36.97, 45.62, -70.92)
CIE-LCHlch(36.97, 84.33, 302.75°)
OKLaboklab(47.6% 0.0308 -0.2046)
OKLCHoklch(47.6% 0.207 278.6)
XYZxyz(15.6306, 9.5210, 58.1291)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40CC #C1CC40
analogous
#407BCC #4B40CC #9140CC
triadic
#4B40CC #CC4B40 #40CC4B
tetradic
#4B40CC #CC407B #C1CC40 #40CC91
square
#4B40CC #CC407B #C1CC40 #40CC91
split-complementary
#4B40CC #CC9140 #7BCC40
monochromatic
#251F73 #352CA3 #4B40CC #7970D9 #A6A1E6

Accessibility & contrast

On white

7.23
#4B40CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4B40CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40CC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40CC#FFFFFF#000000##FFFFFF
##4B40CC1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4b40cc;
/* rgb */ color: rgb(75, 64, 204);
/* oklch */ color: oklch(47.6% 0.207 278.6);
Tailwind
colors: {
  custom: {
    50: '#8c76dd',
    500: '#4b40cc',
    950: '#000000',
  },
}
SCSS
$custom: #4b40cc;
$custom-light: #8c76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40cc",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 244.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.476,
    "c": 0.20689,
    "h": 278.6
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#4B40CC
secondary
#CED295
accent
#E147D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4B40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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