#4A40CB#4A40CB

#4A40CB is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.206 H 278.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#4A40CB
RGBrgb(74, 64, 203)
HSLhsl(244, 57%, 52%)
HSVhsv(244, 68%, 80%)
CMYKcmyk(63.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.81, 45.17, -70.61)
CIE-LCHlch(36.81, 83.82, 302.61°)
OKLaboklab(47.44% 0.0297 -0.2037)
OKLCHoklch(47.44% 0.206 278.3)
XYZxyz(15.4335, 9.4332, 57.4958)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40CB #C1CB40
analogous
#407BCB #4A40CB #9040CB
triadic
#4A40CB #CB4A40 #40CB4A
tetradic
#4A40CB #CB407B #C1CB40 #40CB90
square
#4A40CB #CB407B #C1CB40 #40CB90
split-complementary
#4A40CB #CB9040 #7BCB40
monochromatic
#251F72 #352CA2 #4A40CB #7870D8 #A5A0E5

Accessibility & contrast

On white

7.27
#4A40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4A40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40CB
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40CB#FFFFFF#000000##FFFFFF
##4A40CB1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4a40cb;
/* rgb */ color: rgb(74, 64, 203);
/* oklch */ color: oklch(47.4% 0.206 278.3);
Tailwind
colors: {
  custom: {
    50: '#8c76dc',
    500: '#4a40cb',
    950: '#000000',
  },
}
SCSS
$custom: #4a40cb;
$custom-light: #8c76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40cb",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 244.317,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47436,
    "c": 0.20585,
    "h": 278.3
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#4A40CB
secondary
#CDD295
accent
#E047D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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