#4042D1#4042D1

#4042D1 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.6% C 0.213 H 274.1°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#4042D1
RGBrgb(64, 66, 209)
HSLhsl(239, 61%, 54%)
HSVhsv(239, 69%, 82%)
CMYKcmyk(69.4%, 68.4%, 0%, 18%)
CIE-LABlab(37.09, 44.72, -73.64)
CIE-LCHlch(37.09, 86.15, 301.27°)
OKLaboklab(47.63% 0.0154 -0.2128)
OKLCHoklch(47.63% 0.213 274.1)
XYZxyz(15.5674, 9.5884, 61.3396)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042D1 #D1CF40
analogous
#408AD1 #4042D1 #8640D1
triadic
#4042D1 #D14042 #42D140
tetradic
#4042D1 #D1408A #D1CF40 #40D186
square
#4042D1 #D1408A #D1CF40 #40D186
split-complementary
#4042D1 #D18640 #8AD140
monochromatic
#1D1F79 #292BAB #4042D1 #7173DD #A3A4E9

Accessibility & contrast

On white

7.20
#4042D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4042D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042D1
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042D1#FFFFFF#000000##FFFFFF
##4042D11.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0050CE
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4042d1;
/* rgb */ color: rgb(64, 66, 209);
/* oklch */ color: oklch(47.6% 0.213 274.1);
Tailwind
colors: {
  custom: {
    50: '#8877e0',
    500: '#4042d1',
    950: '#000000',
  },
}
SCSS
$custom: #4042d1;
$custom-light: #8877e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4042d1",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 239.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47633,
    "c": 0.21337,
    "h": 274.1
  },
  "luminance": 0.0959
}

Semantic roles & 50–950 ramp

primary
#4042D1
secondary
#D5D597
accent
#E244E4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4042D1

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

Preview Lab → · Contrast checker → · Palette generator →

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