#4A40AE#4A40AE

#4A40AE is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.169 H 281.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#4A40AE
RGBrgb(74, 64, 174)
HSLhsl(245, 46%, 47%)
HSVhsv(245, 63%, 68%)
CMYKcmyk(57.5%, 63.2%, 0%, 31.8%)
CIE-LABlab(34.35, 35.84, -57.57)
CIE-LCHlch(34.35, 67.82, 301.91°)
OKLaboklab(44.9% 0.033 -0.1655)
OKLCHoklch(44.9% 0.169 281.3)
XYZxyz(12.2950, 8.1778, 40.9668)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40AE #A4AE40
analogous
#406DAE #4A40AE #8140AE
triadic
#4A40AE #AE4A40 #40AE4A
tetradic
#4A40AE #AE406D #A4AE40 #40AE81
square
#4A40AE #AE406D #A4AE40 #40AE81
split-complementary
#4A40AE #AE8140 #6DAE40
monochromatic
#241F55 #373081 #4A40AE #6E65C6 #9892D7

Accessibility & contrast

On white

7.97
#4A40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4A40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40AE
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40AE#FFFFFF#000000##FFFFFF
##4A40AE1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#135B71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4a40ae;
/* rgb */ color: rgb(74, 64, 174);
/* oklch */ color: oklch(44.9% 0.169 281.3);
Tailwind
colors: {
  custom: {
    50: '#8675c7',
    500: '#4a40ae',
    950: '#000000',
  },
}
SCSS
$custom: #4a40ae;
$custom-light: #8675c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40ae",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 245.455,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44899,
    "c": 0.16871,
    "h": 281.3
  },
  "luminance": 0.08179
}

Semantic roles & 50–950 ramp

primary
#4A40AE
secondary
#BDC288
accent
#D652CA
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4A40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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