#4042CA#4042CA

#4042CA is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.0% C 0.205 H 274.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#4042CA
RGBrgb(64, 66, 202)
HSLhsl(239, 57%, 52%)
HSVhsv(239, 68%, 79%)
CMYKcmyk(68.3%, 67.3%, 0%, 20.8%)
CIE-LABlab(36.46, 42.39, -70.62)
CIE-LCHlch(36.46, 82.37, 300.97°)
OKLaboklab(46.98% 0.0162 -0.204)
OKLCHoklch(46.98% 0.205 274.5)
XYZxyz(14.7197, 9.2493, 56.8752)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042CA #CAC840
analogous
#4087CA #4042CA #8340CA
triadic
#4042CA #CA4042 #42CA40
tetradic
#4042CA #CA4087 #CAC840 #40CA83
square
#4042CA #CA4087 #CAC840 #40CA83
split-complementary
#4042CA #CA8340 #87CA40
monochromatic
#1F2070 #2C2EA0 #4042CA #7071D7 #A0A1E5

Accessibility & contrast

On white

7.37
#4042CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4042CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042CA
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042CA#FFFFFF#000000##FFFFFF
##4042CA1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4042ca;
/* rgb */ color: rgb(64, 66, 202);
/* oklch */ color: oklch(47.0% 0.205 274.5);
Tailwind
colors: {
  custom: {
    50: '#8777db',
    500: '#4042ca',
    950: '#000000',
  },
}
SCSS
$custom: #4042ca;
$custom-light: #8777db;
$custom-dark: #000000;
JSON
{
  "hex": "#4042ca",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 239.13,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46982,
    "c": 0.20464,
    "h": 274.5
  },
  "luminance": 0.09251
}

Semantic roles & 50–950 ramp

primary
#4042CA
secondary
#D1D095
accent
#DE48E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4042CA

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

Preview Lab → · Contrast checker → · Palette generator →

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