#4C40BD#4C40BD

#4C40BD is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.188 H 280.5°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#4C40BD
RGBrgb(76, 64, 189)
HSLhsl(246, 49%, 50%)
HSVhsv(246, 66%, 74%)
CMYKcmyk(59.8%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.75, 41.00, -64.16)
CIE-LCHlch(35.75, 76.14, 302.58°)
OKLaboklab(46.34% 0.0341 -0.1847)
OKLCHoklch(46.34% 0.188 280.5)
XYZxyz(13.9963, 8.8764, 49.1100)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40BD #B1BD40
analogous
#4073BD #4C40BD #8B40BD
triadic
#4C40BD #BD4C40 #40BD4C
tetradic
#4C40BD #BD4073 #B1BD40 #40BD8B
square
#4C40BD #BD4073 #B1BD40 #40BD8B
split-complementary
#4C40BD #BD8B40 #73BD40
monochromatic
#272162 #3A318F #4C40BD #766DCD #A19ADD

Accessibility & contrast

On white

7.57
#4C40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4C40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40BD
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40BD#FFFFFF#000000##FFFFFF
##4C40BD1.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#006079
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4c40bd;
/* rgb */ color: rgb(76, 64, 189);
/* oklch */ color: oklch(46.3% 0.188 280.5);
Tailwind
colors: {
  custom: {
    50: '#8a76d2',
    500: '#4c40bd',
    950: '#000000',
  },
}
SCSS
$custom: #4c40bd;
$custom-light: #8a76d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40bd",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 245.76,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46337,
    "c": 0.18787,
    "h": 280.5
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#4C40BD
secondary
#C3C990
accent
#D94FCC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4C40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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