#4B40C4#4B40C4

#4B40C4 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.9% C 0.197 H 279.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#4B40C4
RGBrgb(75, 64, 196)
HSLhsl(245, 53%, 51%)
HSVhsv(245, 67%, 77%)
CMYKcmyk(61.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(36.27, 43.08, -67.42)
CIE-LCHlch(36.27, 80.00, 302.58°)
OKLaboklab(46.88% 0.0319 -0.1943)
OKLCHoklch(46.88% 0.197 279.3)
XYZxyz(14.6957, 9.1471, 53.2050)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40C4 #B9C440
analogous
#4077C4 #4B40C4 #8D40C4
triadic
#4B40C4 #C44B40 #40C44B
tetradic
#4B40C4 #C44077 #B9C440 #40C48D
square
#4B40C4 #C44077 #B9C440 #40C48D
split-complementary
#4B40C4 #C48D40 #77C440
monochromatic
#272069 #382F98 #4B40C4 #776FD2 #A39EE1

Accessibility & contrast

On white

7.42
#4B40C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4B40C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40C4
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40C4#FFFFFF#000000##FFFFFF
##4B40C41.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4b40c4;
/* rgb */ color: rgb(75, 64, 196);
/* oklch */ color: oklch(46.9% 0.197 279.3);
Tailwind
colors: {
  custom: {
    50: '#8b76d7',
    500: '#4b40c4',
    950: '#000000',
  },
}
SCSS
$custom: #4b40c4;
$custom-light: #8b76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40c4",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 245,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46879,
    "c": 0.19692,
    "h": 279.3
  },
  "luminance": 0.09148
}

Semantic roles & 50–950 ramp

primary
#4B40C4
secondary
#C8CD93
accent
#DC4CD0
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4B40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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