#4A40D3#4A40D3

#4A40D3 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.216 H 277.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4A40D3
RGBrgb(74, 64, 211)
HSLhsl(244, 63%, 54%)
HSVhsv(244, 70%, 83%)
CMYKcmyk(64.9%, 69.7%, 0%, 17.3%)
CIE-LABlab(37.53, 47.71, -74.06)
CIE-LCHlch(37.53, 88.10, 302.79°)
OKLaboklab(48.17% 0.0285 -0.2138)
OKLCHoklch(48.17% 0.216 277.6)
XYZxyz(16.4115, 9.8244, 62.6468)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40D3 #C9D340
analogous
#4080D3 #4A40D3 #9440D3
triadic
#4A40D3 #D34A40 #40D34A
tetradic
#4A40D3 #D34080 #C9D340 #40D394
square
#4A40D3 #D34080 #C9D340 #40D394
split-complementary
#4A40D3 #D39440 #80D340
monochromatic
#231D7C #3128AE #4A40D3 #7972DE #A8A3EA

Accessibility & contrast

On white

7.08
#4A40D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4A40D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40D3
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40D3#FFFFFF#000000##FFFFFF
##4A40D31.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED7
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4a40d3;
/* rgb */ color: rgb(74, 64, 211);
/* oklch */ color: oklch(48.2% 0.216 277.6);
Tailwind
colors: {
  custom: {
    50: '#8d76e2',
    500: '#4a40d3',
    950: '#000000',
  },
}
SCSS
$custom: #4a40d3;
$custom-light: #8d76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40d3",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 244.082,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48173,
    "c": 0.21568,
    "h": 277.6
  },
  "luminance": 0.09826
}

Semantic roles & 50–950 ramp

primary
#4A40D3
secondary
#D2D798
accent
#E642DA
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4A40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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