#4B40CA#4B40CA

#4B40CA is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.204 H 278.8°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4B40CA
RGBrgb(75, 64, 202)
HSLhsl(245, 57%, 52%)
HSVhsv(245, 68%, 79%)
CMYKcmyk(62.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(36.79, 44.99, -70.05)
CIE-LCHlch(36.79, 83.25, 302.71°)
OKLaboklab(47.42% 0.0311 -0.202)
OKLCHoklch(47.42% 0.204 278.8)
XYZxyz(15.3923, 9.4257, 56.8739)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40CA #BFCA40
analogous
#407ACA #4B40CA #9040CA
triadic
#4B40CA #CA4B40 #40CA4B
tetradic
#4B40CA #CA407A #BFCA40 #40CA90
square
#4B40CA #CA407A #BFCA40 #40CA90
split-complementary
#4B40CA #CA9040 #7ACA40
monochromatic
#261F70 #362CA0 #4B40CA #7870D7 #A5A0E5

Accessibility & contrast

On white

7.28
#4B40CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B40CA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40CA#FFFFFF#000000##FFFFFF
##4B40CA1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b40ca;
/* rgb */ color: rgb(75, 64, 202);
/* oklch */ color: oklch(47.4% 0.204 278.8);
Tailwind
colors: {
  custom: {
    50: '#8c76db',
    500: '#4b40ca',
    950: '#000000',
  },
}
SCSS
$custom: #4b40ca;
$custom-light: #8c76db;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40ca",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 244.783,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47418,
    "c": 0.20441,
    "h": 278.8
  },
  "luminance": 0.09427
}

Semantic roles & 50–950 ramp

primary
#4B40CA
secondary
#CCD195
accent
#E048D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4B40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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