#4A40BB#4A40BB

#4A40BB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.186 H 279.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#4A40BB
RGBrgb(74, 64, 187)
HSLhsl(245, 49%, 49%)
HSVhsv(245, 66%, 73%)
CMYKcmyk(60.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(35.42, 40.04, -63.53)
CIE-LCHlch(35.42, 75.09, 302.22°)
OKLaboklab(46.01% 0.0318 -0.1829)
OKLCHoklch(46.01% 0.186 279.8)
XYZxyz(13.6242, 8.7095, 47.9672)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40BB #B1BB40
analogous
#4074BB #4A40BB #8840BB
triadic
#4A40BB #BB4A40 #40BB4A
tetradic
#4A40BB #BB4074 #B1BB40 #40BB88
square
#4A40BB #BB4074 #B1BB40 #40BB88
split-complementary
#4A40BB #BB8840 #74BB40
monochromatic
#262160 #38308D #4A40BB #746CCD #9F99DC

Accessibility & contrast

On white

7.66
#4A40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4A40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40BB
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40BB#FFFFFF#000000##FFFFFF
##4A40BB1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a40bb;
/* rgb */ color: rgb(74, 64, 187);
/* oklch */ color: oklch(46.0% 0.186 279.8);
Tailwind
colors: {
  custom: {
    50: '#8976d0',
    500: '#4a40bb',
    950: '#000000',
  },
}
SCSS
$custom: #4a40bb;
$custom-light: #8976d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40bb",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 244.878,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46009,
    "c": 0.18567,
    "h": 279.8
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#4A40BB
secondary
#C3C88F
accent
#D94FCD
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4A40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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