#4042DD#4042DD

#4042DD is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.228 H 273.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#4042DD
RGBrgb(64, 66, 221)
HSLhsl(239, 70%, 56%)
HSVhsv(239, 71%, 87%)
CMYKcmyk(71%, 70.1%, 0%, 13.3%)
CIE-LABlab(38.21, 48.66, -78.71)
CIE-LCHlch(38.21, 92.53, 301.73°)
OKLaboklab(48.77% 0.0137 -0.2276)
OKLCHoklch(48.77% 0.228 273.5)
XYZxyz(17.1094, 10.2052, 69.4607)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042DD #DDDB40
analogous
#4090DD #4042DD #8C40DD
triadic
#4042DD #DD4042 #42DD40
tetradic
#4042DD #DD4090 #DDDB40 #40DD8C
square
#4042DD #DD4090 #DDDB40 #40DD8C
split-complementary
#4042DD #DD8C40 #90DD40
monochromatic
#191A8A #2224BE #4042DD #7475E6 #A8A9EF

Accessibility & contrast

On white

6.90
#4042DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4042DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4042DD
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042DD#FFFFFF#000000##FFFFFF
##4042DD1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E2
Deuteranopia (green-blind)
#0052DA
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4042dd;
/* rgb */ color: rgb(64, 66, 221);
/* oklch */ color: oklch(48.8% 0.228 273.5);
Tailwind
colors: {
  custom: {
    50: '#8b78e9',
    500: '#4042dd',
    950: '#000000',
  },
}
SCSS
$custom: #4042dd;
$custom-light: #8b78e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4042dd",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 239.236,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.48772,
    "c": 0.22803,
    "h": 273.5
  },
  "luminance": 0.10207
}

Semantic roles & 50–950 ramp

primary
#4042DD
secondary
#DDDC9C
accent
#EA3BED
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4042DD

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

Preview Lab → · Contrast checker → · Palette generator →

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