#4A40BF#4A40BF

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

Color values

HEX#4A40BF
RGBrgb(74, 64, 191)
HSLhsl(245, 50%, 50%)
HSVhsv(245, 66%, 75%)
CMYKcmyk(61.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.76, 41.33, -65.32)
CIE-LCHlch(35.76, 77.30, 302.32°)
OKLaboklab(46.36% 0.0313 -0.1882)
OKLCHoklch(46.36% 0.191 279.4)
XYZxyz(14.0584, 8.8832, 50.2539)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40BF #B5BF40
analogous
#4076BF #4A40BF #8940BF
triadic
#4A40BF #BF4A40 #40BF4A
tetradic
#4A40BF #BF4076 #B5BF40 #40BF89
square
#4A40BF #BF4076 #B5BF40 #40BF89
split-complementary
#4A40BF #BF8940 #76BF40
monochromatic
#262163 #383191 #4A40BF #756ECE #A19CDE

Accessibility & contrast

On white

7.56
#4A40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A40BF
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40BF#FFFFFF#000000##FFFFFF
##4A40BF1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4a40bf;
/* rgb */ color: rgb(74, 64, 191);
/* oklch */ color: oklch(46.4% 0.191 279.4);
Tailwind
colors: {
  custom: {
    50: '#8976d3',
    500: '#4a40bf',
    950: '#000000',
  },
}
SCSS
$custom: #4a40bf;
$custom-light: #8976d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40bf",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 244.724,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.4636,
    "c": 0.19078,
    "h": 279.4
  },
  "luminance": 0.08884
}

Semantic roles & 50–950 ramp

primary
#4A40BF
secondary
#C5CA91
accent
#D94ECE
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4A40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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