#4C40BE#4C40BE

#4C40BE is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.4% C 0.189 H 280.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#4C40BE
RGBrgb(76, 64, 190)
HSLhsl(246, 50%, 50%)
HSVhsv(246, 66%, 75%)
CMYKcmyk(60%, 66.3%, 0%, 25.5%)
CIE-LABlab(35.83, 41.31, -64.61)
CIE-LCHlch(35.83, 76.69, 302.60°)
OKLaboklab(46.43% 0.034 -0.1861)
OKLCHoklch(46.43% 0.189 280.4)
XYZxyz(14.1052, 8.9200, 49.6837)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40BE #B2BE40
analogous
#4073BE #4C40BE #8B40BE
triadic
#4C40BE #BE4C40 #40BE4C
tetradic
#4C40BE #BE4073 #B2BE40 #40BE8B
square
#4C40BE #BE4073 #B2BE40 #40BE8B
split-complementary
#4C40BE #BE8B40 #73BE40
monochromatic
#272162 #3A3190 #4C40BE #766DCE #A19BDD

Accessibility & contrast

On white

7.54
#4C40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C40BE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40BE#FFFFFF#000000##FFFFFF
##4C40BE1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c40be;
/* rgb */ color: rgb(76, 64, 190);
/* oklch */ color: oklch(46.4% 0.189 280.4);
Tailwind
colors: {
  custom: {
    50: '#8a76d3',
    500: '#4c40be',
    950: '#000000',
  },
}
SCSS
$custom: #4c40be;
$custom-light: #8a76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40be",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 245.714,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46425,
    "c": 0.18914,
    "h": 280.4
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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