#4040CE#4040CE

#4040CE is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.0% C 0.212 H 274.6°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#4040CE
RGBrgb(64, 64, 206)
HSLhsl(240, 59%, 53%)
HSVhsv(240, 69%, 81%)
CMYKcmyk(68.9%, 68.9%, 0%, 19.2%)
CIE-LABlab(36.39, 44.90, -73.06)
CIE-LCHlch(36.39, 85.75, 301.57°)
OKLaboklab(47.04% 0.017 -0.2111)
OKLCHoklch(47.04% 0.212 274.6)
XYZxyz(15.0846, 9.2116, 59.3636)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4040CE #CECE40
analogous
#4087CE #4040CE #8740CE
triadic
#4040CE #CE4040 #40CE40
tetradic
#4040CE #CE4087 #CECE40 #40CE87
square
#4040CE #CE4087 #CECE40 #40CE87
split-complementary
#4040CE #CE8740 #87CE40
monochromatic
#1E1E75 #2B2BA6 #4040CE #7171DA #A1A1E7

Accessibility & contrast

On white

7.39
#4040CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4040CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4040CE
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4040CE#FFFFFF#000000##FFFFFF
##4040CE1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#004FCB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4040ce;
/* rgb */ color: rgb(64, 64, 206);
/* oklch */ color: oklch(47.0% 0.212 274.6);
Tailwind
colors: {
  custom: {
    50: '#8876de',
    500: '#4040ce',
    950: '#000000',
  },
}
SCSS
$custom: #4040ce;
$custom-light: #8876de;
$custom-dark: #000000;
JSON
{
  "hex": "#4040ce",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 240,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47041,
    "c": 0.21181,
    "h": 274.6
  },
  "luminance": 0.09213
}

Semantic roles & 50–950 ramp

primary
#4040CE
secondary
#D4D496
accent
#E245E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4040CE

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

Preview Lab → · Contrast checker → · Palette generator →

#4040CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva