#4042D3#4042D3

#4042D3 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.8% C 0.216 H 274.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#4042D3
RGBrgb(64, 66, 211)
HSLhsl(239, 63%, 54%)
HSVhsv(239, 70%, 83%)
CMYKcmyk(69.7%, 68.7%, 0%, 17.3%)
CIE-LABlab(37.28, 45.38, -74.49)
CIE-LCHlch(37.28, 87.23, 301.35°)
OKLaboklab(47.82% 0.0151 -0.2153)
OKLCHoklch(47.82% 0.216 274)
XYZxyz(15.8165, 9.6881, 62.6518)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042D3 #D3D140
analogous
#408CD3 #4042D3 #8840D3
triadic
#4042D3 #D34042 #42D340
tetradic
#4042D3 #D3408C #D3D140 #40D388
square
#4042D3 #D3408C #D3D140 #40D388
split-complementary
#4042D3 #D38840 #8CD340
monochromatic
#1D1E7C #282AAE #4042D3 #7273DE #A3A4EA

Accessibility & contrast

On white

7.15
#4042D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4042D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042D3
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042D3#FFFFFF#000000##FFFFFF
##4042D31.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0051D0
Tritanopia (blue-blind)
#006A85
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4042d3;
/* rgb */ color: rgb(64, 66, 211);
/* oklch */ color: oklch(47.8% 0.216 274.0);
Tailwind
colors: {
  custom: {
    50: '#8977e2',
    500: '#4042d3',
    950: '#000000',
  },
}
SCSS
$custom: #4042d3;
$custom-light: #8977e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4042d3",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 239.184,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.4782,
    "c": 0.21584,
    "h": 274
  },
  "luminance": 0.0969
}

Semantic roles & 50–950 ramp

primary
#4042D3
secondary
#D7D698
accent
#E342E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #4042D3

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

Preview Lab → · Contrast checker → · Palette generator →

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