#4A40BC#4A40BC

#4A40BC is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.187 H 279.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#4A40BC
RGBrgb(74, 64, 188)
HSLhsl(245, 49%, 49%)
HSVhsv(245, 66%, 74%)
CMYKcmyk(60.6%, 66%, 0%, 26.3%)
CIE-LABlab(35.50, 40.36, -63.98)
CIE-LCHlch(35.50, 75.65, 302.25°)
OKLaboklab(46.1% 0.0316 -0.1843)
OKLCHoklch(46.1% 0.187 279.7)
XYZxyz(13.7317, 8.7525, 48.5330)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40BC #B2BC40
analogous
#4074BC #4A40BC #8840BC
triadic
#4A40BC #BC4A40 #40BC4A
tetradic
#4A40BC #BC4074 #B2BC40 #40BC88
square
#4A40BC #BC4074 #B2BC40 #40BC88
split-complementary
#4A40BC #BC8840 #74BC40
monochromatic
#262161 #38308E #4A40BC #746CCD #9F9ADD

Accessibility & contrast

On white

7.63
#4A40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4A40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40BC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40BC#FFFFFF#000000##FFFFFF
##4A40BC1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4a40bc;
/* rgb */ color: rgb(74, 64, 188);
/* oklch */ color: oklch(46.1% 0.187 279.7);
Tailwind
colors: {
  custom: {
    50: '#8976d1',
    500: '#4a40bc',
    950: '#000000',
  },
}
SCSS
$custom: #4a40bc;
$custom-light: #8976d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40bc",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 244.839,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46096,
    "c": 0.18696,
    "h": 279.7
  },
  "luminance": 0.08753
}

Semantic roles & 50–950 ramp

primary
#4A40BC
secondary
#C4C98F
accent
#D94FCE
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4A40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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