#4042C4#4042C4

#4042C4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.4% C 0.197 H 274.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4042C4
RGBrgb(64, 66, 196)
HSLhsl(239, 53%, 51%)
HSVhsv(239, 67%, 77%)
CMYKcmyk(67.3%, 66.3%, 0%, 23.1%)
CIE-LABlab(35.93, 40.38, -68.00)
CIE-LCHlch(35.93, 79.08, 300.70°)
OKLaboklab(46.43% 0.0168 -0.1963)
OKLCHoklch(46.43% 0.197 274.9)
XYZxyz(14.0231, 8.9707, 53.2064)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042C4 #C4C240
analogous
#4084C4 #4042C4 #8040C4
triadic
#4042C4 #C44042 #42C440
tetradic
#4042C4 #C44084 #C4C240 #40C480
square
#4042C4 #C44084 #C4C240 #40C480
split-complementary
#4042C4 #C48040 #84C440
monochromatic
#202269 #2F3198 #4042C4 #6F70D2 #9E9FE1

Accessibility & contrast

On white

7.52
#4042C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4042C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042C4
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042C4#FFFFFF#000000##FFFFFF
##4042C41.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4042c4;
/* rgb */ color: rgb(64, 66, 196);
/* oklch */ color: oklch(46.4% 0.197 274.9);
Tailwind
colors: {
  custom: {
    50: '#8577d7',
    500: '#4042c4',
    950: '#000000',
  },
}
SCSS
$custom: #4042c4;
$custom-light: #8577d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4042c4",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 239.091,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46433,
    "c": 0.19704,
    "h": 274.9
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#4042C4
secondary
#CDCC93
accent
#DA4CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #4042C4

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

Preview Lab → · Contrast checker → · Palette generator →

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