#4A40BD#4A40BD

#4A40BD is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.2% C 0.188 H 279.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#4A40BD
RGBrgb(74, 64, 189)
HSLhsl(245, 49%, 50%)
HSVhsv(245, 66%, 74%)
CMYKcmyk(60.8%, 66.1%, 0%, 25.9%)
CIE-LABlab(35.59, 40.69, -64.43)
CIE-LCHlch(35.59, 76.20, 302.27°)
OKLaboklab(46.18% 0.0315 -0.1856)
OKLCHoklch(46.18% 0.188 279.6)
XYZxyz(13.8398, 8.7957, 49.1027)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40BD #B3BD40
analogous
#4075BD #4A40BD #8940BD
triadic
#4A40BD #BD4A40 #40BD4A
tetradic
#4A40BD #BD4075 #B3BD40 #40BD89
square
#4A40BD #BD4075 #B3BD40 #40BD89
split-complementary
#4A40BD #BD8940 #75BD40
monochromatic
#262162 #38318F #4A40BD #746DCD #A09ADD

Accessibility & contrast

On white

7.61
#4A40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4A40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40BD
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40BD#FFFFFF#000000##FFFFFF
##4A40BD1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a40bd;
/* rgb */ color: rgb(74, 64, 189);
/* oklch */ color: oklch(46.2% 0.188 279.6);
Tailwind
colors: {
  custom: {
    50: '#8976d2',
    500: '#4a40bd',
    950: '#000000',
  },
}
SCSS
$custom: #4a40bd;
$custom-light: #8976d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40bd",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 244.8,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46184,
    "c": 0.18824,
    "h": 279.6
  },
  "luminance": 0.08797
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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