#4042C6#4042C6

#4042C6 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.6% C 0.200 H 274.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4042C6
RGBrgb(64, 66, 198)
HSLhsl(239, 54%, 51%)
HSVhsv(239, 68%, 78%)
CMYKcmyk(67.7%, 66.7%, 0%, 22.4%)
CIE-LABlab(36.10, 41.05, -68.88)
CIE-LCHlch(36.10, 80.18, 300.79°)
OKLaboklab(46.62% 0.0166 -0.1989)
OKLCHoklch(46.62% 0.2 274.8)
XYZxyz(14.2522, 9.0623, 54.4133)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042C6 #C6C440
analogous
#4085C6 #4042C6 #8140C6
triadic
#4042C6 #C64042 #42C640
tetradic
#4042C6 #C64085 #C6C440 #40C681
square
#4042C6 #C64085 #C6C440 #40C681
split-complementary
#4042C6 #C68140 #85C640
monochromatic
#20216C #2E309B #4042C6 #6F71D4 #9E9FE2

Accessibility & contrast

On white

7.47
#4042C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4042C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042C6
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042C6#FFFFFF#000000##FFFFFF
##4042C61.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#004FC4
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4042c6;
/* rgb */ color: rgb(64, 66, 198);
/* oklch */ color: oklch(46.6% 0.200 274.8);
Tailwind
colors: {
  custom: {
    50: '#8677d8',
    500: '#4042c6',
    950: '#000000',
  },
}
SCSS
$custom: #4042c6;
$custom-light: #8677d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4042c6",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 239.104,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46615,
    "c": 0.19958,
    "h": 274.8
  },
  "luminance": 0.09064
}

Semantic roles & 50–950 ramp

primary
#4042C6
secondary
#CECE93
accent
#DB4ADD
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4042C6

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

Preview Lab → · Contrast checker → · Palette generator →

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