#4042DA#4042DA

#4042DA is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.224 H 273.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#4042DA
RGBrgb(64, 66, 218)
HSLhsl(239, 68%, 55%)
HSVhsv(239, 71%, 85%)
CMYKcmyk(70.6%, 69.7%, 0%, 14.5%)
CIE-LABlab(37.93, 47.68, -77.45)
CIE-LCHlch(37.93, 90.95, 301.62°)
OKLaboklab(48.48% 0.0142 -0.224)
OKLCHoklch(48.48% 0.224 273.6)
XYZxyz(16.7132, 10.0467, 67.3745)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042DA #DAD840
analogous
#408FDA #4042DA #8B40DA
triadic
#4042DA #DA4042 #42DA40
tetradic
#4042DA #DA408F #DAD840 #40DA8B
square
#4042DA #DA408F #DAD840 #40DA8B
split-complementary
#4042DA #DA8B40 #8FDA40
monochromatic
#1A1B86 #2426B9 #4042DA #7375E4 #A7A7EE

Accessibility & contrast

On white

6.98
#4042DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4042DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4042DA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042DA#FFFFFF#000000##FFFFFF
##4042DA1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DF
Deuteranopia (green-blind)
#0052D7
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4042da;
/* rgb */ color: rgb(64, 66, 218);
/* oklch */ color: oklch(48.5% 0.224 273.6);
Tailwind
colors: {
  custom: {
    50: '#8a77e7',
    500: '#4042da',
    950: '#000000',
  },
}
SCSS
$custom: #4042da;
$custom-light: #8a77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4042da",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 239.221,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.48484,
    "c": 0.22441,
    "h": 273.6
  },
  "luminance": 0.10048
}

Semantic roles & 50–950 ramp

primary
#4042DA
secondary
#DBDA9B
accent
#E83DEA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4042DA

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

Preview Lab → · Contrast checker → · Palette generator →

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