#4A40CC#4A40CC

#4A40CC is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.207 H 278.2°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#4A40CC
RGBrgb(74, 64, 204)
HSLhsl(244, 58%, 53%)
HSVhsv(244, 69%, 80%)
CMYKcmyk(63.7%, 68.6%, 0%, 20%)
CIE-LABlab(36.89, 45.49, -71.05)
CIE-LCHlch(36.89, 84.36, 302.63°)
OKLaboklab(47.53% 0.0295 -0.205)
OKLCHoklch(47.53% 0.207 278.2)
XYZxyz(15.5530, 9.4810, 58.1254)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40CC #C2CC40
analogous
#407CCC #4A40CC #9040CC
triadic
#4A40CC #CC4A40 #40CC4A
tetradic
#4A40CC #CC407C #C2CC40 #40CC90
square
#4A40CC #CC407C #C2CC40 #40CC90
split-complementary
#4A40CC #CC9040 #7CCC40
monochromatic
#251F73 #342CA3 #4A40CC #7870D9 #A6A1E6

Accessibility & contrast

On white

7.25
#4A40CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4A40CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40CC
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40CC#FFFFFF#000000##FFFFFF
##4A40CC1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4a40cc;
/* rgb */ color: rgb(74, 64, 204);
/* oklch */ color: oklch(47.5% 0.207 278.2);
Tailwind
colors: {
  custom: {
    50: '#8c76dd',
    500: '#4a40cc',
    950: '#000000',
  },
}
SCSS
$custom: #4a40cc;
$custom-light: #8c76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40cc",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 244.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47528,
    "c": 0.20709,
    "h": 278.2
  },
  "luminance": 0.09482
}

Semantic roles & 50–950 ramp

primary
#4A40CC
secondary
#CED295
accent
#E147D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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