#4042C0#4042C0

#4042C0 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.192 H 275.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#4042C0
RGBrgb(64, 66, 192)
HSLhsl(239, 50%, 50%)
HSVhsv(239, 67%, 75%)
CMYKcmyk(66.7%, 65.6%, 0%, 24.7%)
CIE-LABlab(35.58, 39.03, -66.23)
CIE-LCHlch(35.58, 76.88, 300.51°)
OKLaboklab(46.07% 0.0172 -0.1911)
OKLCHoklch(46.07% 0.192 275.1)
XYZxyz(13.5739, 8.7910, 50.8405)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042C0 #C0BE40
analogous
#4082C0 #4042C0 #7E40C0
triadic
#4042C0 #C04042 #42C040
tetradic
#4042C0 #C04082 #C0BE40 #40C07E
square
#4042C0 #C04082 #C0BE40 #40C07E
split-complementary
#4042C0 #C07E40 #82C040
monochromatic
#212264 #303292 #4042C0 #6E70CF #9C9DDE

Accessibility & contrast

On white

7.61
#4042C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4042C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042C0
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042C0#FFFFFF#000000##FFFFFF
##4042C01.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#004EBE
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4042c0;
/* rgb */ color: rgb(64, 66, 192);
/* oklch */ color: oklch(46.1% 0.192 275.1);
Tailwind
colors: {
  custom: {
    50: '#8577d4',
    500: '#4042c0',
    950: '#000000',
  },
}
SCSS
$custom: #4042c0;
$custom-light: #8577d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4042c0",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 239.063,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46072,
    "c": 0.19191,
    "h": 275.1
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#4042C0
secondary
#CBCA91
accent
#D84EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4042C0

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

Preview Lab → · Contrast checker → · Palette generator →

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