#4A40B2#4A40B2

#4A40B2 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.174 H 280.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#4A40B2
RGBrgb(74, 64, 178)
HSLhsl(245, 47%, 47%)
HSVhsv(245, 64%, 70%)
CMYKcmyk(58.4%, 64%, 0%, 30.2%)
CIE-LABlab(34.67, 37.14, -59.43)
CIE-LCHlch(34.67, 70.08, 302.00°)
OKLaboklab(45.24% 0.0326 -0.1709)
OKLCHoklch(45.24% 0.174 280.8)
XYZxyz(12.6908, 8.3361, 43.0511)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40B2 #A8B240
analogous
#406FB2 #4A40B2 #8340B2
triadic
#4A40B2 #B24A40 #40B24A
tetradic
#4A40B2 #B2406F #A8B240 #40B283
square
#4A40B2 #B2406F #A8B240 #40B283
split-complementary
#4A40B2 #B28340 #6FB240
monochromatic
#252058 #373085 #4A40B2 #6F67C8 #9A94D8

Accessibility & contrast

On white

7.87
#4A40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4A40B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40B2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40B2#FFFFFF#000000##FFFFFF
##4A40B21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#085C73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4a40b2;
/* rgb */ color: rgb(74, 64, 178);
/* oklch */ color: oklch(45.2% 0.174 280.8);
Tailwind
colors: {
  custom: {
    50: '#8775ca',
    500: '#4a40b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a40b2;
$custom-light: #8775ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40b2",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 245.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45236,
    "c": 0.17399,
    "h": 280.8
  },
  "luminance": 0.08337
}

Semantic roles & 50–950 ramp

primary
#4A40B2
secondary
#BFC48A
accent
#D751CB
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4A40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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