#4042D6#4042D6

#4042D6 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.220 H 273.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4042D6
RGBrgb(64, 66, 214)
HSLhsl(239, 65%, 55%)
HSVhsv(239, 70%, 84%)
CMYKcmyk(70.1%, 69.2%, 0%, 16.1%)
CIE-LABlab(37.55, 46.37, -75.77)
CIE-LCHlch(37.55, 88.83, 301.47°)
OKLaboklab(48.1% 0.0147 -0.219)
OKLCHoklch(48.1% 0.22 273.8)
XYZxyz(16.1961, 9.8399, 64.6510)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042D6 #D6D440
analogous
#408DD6 #4042D6 #8940D6
triadic
#4042D6 #D64042 #42D640
tetradic
#4042D6 #D6408D #D6D440 #40D689
square
#4042D6 #D6408D #D6D440 #40D689
split-complementary
#4042D6 #D68940 #8DD640
monochromatic
#1B1D80 #2628B2 #4042D6 #7274E1 #A5A6EC

Accessibility & contrast

On white

7.07
#4042D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4042D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042D6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042D6#FFFFFF#000000##FFFFFF
##4042D61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDA
Deuteranopia (green-blind)
#0051D3
Tritanopia (blue-blind)
#006B87
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4042d6;
/* rgb */ color: rgb(64, 66, 214);
/* oklch */ color: oklch(48.1% 0.220 273.8);
Tailwind
colors: {
  custom: {
    50: '#8977e4',
    500: '#4042d6',
    950: '#000000',
  },
}
SCSS
$custom: #4042d6;
$custom-light: #8977e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4042d6",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 239.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.48104,
    "c": 0.21952,
    "h": 273.8
  },
  "luminance": 0.09841
}

Semantic roles & 50–950 ramp

primary
#4042D6
secondary
#D9D899
accent
#E540E8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4042D6

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

Preview Lab → · Contrast checker → · Palette generator →

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