#4A40CD#4A40CD

#4A40CD is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.208 H 278.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#4A40CD
RGBrgb(74, 64, 205)
HSLhsl(244, 59%, 53%)
HSVhsv(244, 69%, 80%)
CMYKcmyk(63.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(36.98, 45.81, -71.48)
CIE-LCHlch(36.98, 84.90, 302.65°)
OKLaboklab(47.62% 0.0294 -0.2062)
OKLCHoklch(47.62% 0.208 278.1)
XYZxyz(15.6733, 9.5291, 58.7591)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40CD #C3CD40
analogous
#407DCD #4A40CD #9040CD
triadic
#4A40CD #CD4A40 #40CD4A
tetradic
#4A40CD #CD407D #C3CD40 #40CD90
square
#4A40CD #CD407D #C3CD40 #40CD90
split-complementary
#4A40CD #CD9040 #7DCD40
monochromatic
#241E74 #342BA5 #4A40CD #7871DA #A6A1E6

Accessibility & contrast

On white

7.23
#4A40CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4A40CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40CD
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40CD#FFFFFF#000000##FFFFFF
##4A40CD1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4a40cd;
/* rgb */ color: rgb(74, 64, 205);
/* oklch */ color: oklch(47.6% 0.208 278.1);
Tailwind
colors: {
  custom: {
    50: '#8c76dd',
    500: '#4a40cd',
    950: '#000000',
  },
}
SCSS
$custom: #4a40cd;
$custom-light: #8c76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40cd",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 244.255,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47619,
    "c": 0.20832,
    "h": 278.1
  },
  "luminance": 0.0953
}

Semantic roles & 50–950 ramp

primary
#4A40CD
secondary
#CFD396
accent
#E246D7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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