#4042CE#4042CE

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

Color values

HEX#4042CE
RGBrgb(64, 66, 206)
HSLhsl(239, 59%, 53%)
HSVhsv(239, 69%, 81%)
CMYKcmyk(68.9%, 68%, 0%, 19.2%)
CIE-LABlab(36.82, 43.72, -72.35)
CIE-LCHlch(36.82, 84.54, 301.14°)
OKLaboklab(47.35% 0.0157 -0.2091)
OKLCHoklch(47.35% 0.21 274.3)
XYZxyz(15.1994, 9.4412, 59.4019)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042CE #CECC40
analogous
#4089CE #4042CE #8540CE
triadic
#4042CE #CE4042 #42CE40
tetradic
#4042CE #CE4089 #CECC40 #40CE85
square
#4042CE #CE4089 #CECC40 #40CE85
split-complementary
#4042CE #CE8540 #89CE40
monochromatic
#1E1F75 #2B2CA6 #4042CE #7172DA #A1A2E7

Accessibility & contrast

On white

7.27
#4042CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4042CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042CE
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042CE#FFFFFF#000000##FFFFFF
##4042CE1.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)
#005DD2
Deuteranopia (green-blind)
#0050CB
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4042ce;
/* rgb */ color: rgb(64, 66, 206);
/* oklch */ color: oklch(47.4% 0.210 274.3);
Tailwind
colors: {
  custom: {
    50: '#8777de',
    500: '#4042ce',
    950: '#000000',
  },
}
SCSS
$custom: #4042ce;
$custom-light: #8777de;
$custom-dark: #000000;
JSON
{
  "hex": "#4042ce",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 239.155,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47352,
    "c": 0.20965,
    "h": 274.3
  },
  "luminance": 0.09443
}

Semantic roles & 50–950 ramp

primary
#4042CE
secondary
#D4D396
accent
#E045E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4042CE

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

Preview Lab → · Contrast checker → · Palette generator →

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