#4042C8#4042C8

#4042C8 is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 46.8% C 0.202 H 274.7°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#4042C8
RGBrgb(64, 66, 200)
HSLhsl(239, 55%, 52%)
HSVhsv(239, 68%, 78%)
CMYKcmyk(68%, 67%, 0%, 21.6%)
CIE-LABlab(36.28, 41.72, -69.75)
CIE-LCHlch(36.28, 81.28, 300.88°)
OKLaboklab(46.8% 0.0164 -0.2014)
OKLCHoklch(46.8% 0.202 274.7)
XYZxyz(14.4844, 9.1552, 55.6362)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042C8 #C8C640
analogous
#4086C8 #4042C8 #8240C8
triadic
#4042C8 #C84042 #42C840
tetradic
#4042C8 #C84086 #C8C640 #40C882
square
#4042C8 #C84086 #C8C640 #40C882
split-complementary
#4042C8 #C88240 #86C840
monochromatic
#20216E #2D2F9D #4042C8 #7071D6 #9FA0E3

Accessibility & contrast

On white

7.42
#4042C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4042C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042C8
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042C8#FFFFFF#000000##FFFFFF
##4042C81.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4042c8;
/* rgb */ color: rgb(64, 66, 200);
/* oklch */ color: oklch(46.8% 0.202 274.7);
Tailwind
colors: {
  custom: {
    50: '#8677da',
    500: '#4042c8',
    950: '#000000',
  },
}
SCSS
$custom: #4042c8;
$custom-light: #8677da;
$custom-dark: #000000;
JSON
{
  "hex": "#4042c8",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 239.118,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.20212,
    "h": 274.7
  },
  "luminance": 0.09157
}

Semantic roles & 50–950 ramp

primary
#4042C8
secondary
#D0CF94
accent
#DC49DF
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4042C8

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

Preview Lab → · Contrast checker → · Palette generator →

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