#4A40DB#4A40DB

#4A40DB is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.9% C 0.225 H 276.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#4A40DB
RGBrgb(74, 64, 219)
HSLhsl(244, 68%, 55%)
HSVhsv(244, 71%, 86%)
CMYKcmyk(66.2%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.26, 50.23, -77.45)
CIE-LCHlch(38.26, 92.31, 302.97°)
OKLaboklab(48.92% 0.0271 -0.2237)
OKLCHoklch(48.92% 0.225 276.9)
XYZxyz(17.4395, 10.2356, 68.0607)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40DB #D1DB40
analogous
#4083DB #4A40DB #9740DB
triadic
#4A40DB #DB4A40 #40DB4A
tetradic
#4A40DB #DB4083 #D1DB40 #40DB97
square
#4A40DB #DB4083 #D1DB40 #40DB97
split-complementary
#4A40DB #DB9740 #83DB40
monochromatic
#211987 #2D23BB #4A40DB #7B73E5 #ACA7EE

Accessibility & contrast

On white

6.89
#4A40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4A40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A40DB
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40DB#FFFFFF#000000##FFFFFF
##4A40DB1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#0053D8
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4a40db;
/* rgb */ color: rgb(74, 64, 219);
/* oklch */ color: oklch(48.9% 0.225 276.9);
Tailwind
colors: {
  custom: {
    50: '#8f77e7',
    500: '#4a40db',
    950: '#000000',
  },
}
SCSS
$custom: #4a40db;
$custom-light: #8f77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40db",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 243.871,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.48923,
    "c": 0.22534,
    "h": 276.9
  },
  "luminance": 0.10237
}

Semantic roles & 50–950 ramp

primary
#4A40DB
secondary
#D8DC9B
accent
#EB3DE0
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4A40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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