#3E42D5#3E42D5

#3E42D5 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.219 H 273.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#3E42D5
RGBrgb(62, 66, 213)
HSLhsl(238, 64%, 54%)
HSVhsv(238, 71%, 84%)
CMYKcmyk(70.9%, 69%, 0%, 16.5%)
CIE-LABlab(37.34, 45.82, -75.55)
CIE-LCHlch(37.34, 88.35, 301.24°)
OKLaboklab(47.89% 0.0126 -0.2184)
OKLCHoklch(47.89% 0.219 273.3)
XYZxyz(15.9410, 9.7231, 63.9745)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42D5 #D5D13E
analogous
#3E8ED5 #3E42D5 #863ED5
triadic
#3E42D5 #D53E42 #42D53E
tetradic
#3E42D5 #D53E8E #D5D13E #3ED586
square
#3E42D5 #D53E8E #D5D13E #3ED586
split-complementary
#3E42D5 #D5863E #8ED53E
monochromatic
#1B1E7D #262AB0 #3E42D5 #7073E0 #A3A4EB

Accessibility & contrast

On white

7.13
#3E42D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3E42D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42D5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42D5#FFFFFF#000000##FFFFFF
##3E42D51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0051D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3e42d5;
/* rgb */ color: rgb(62, 66, 213);
/* oklch */ color: oklch(47.9% 0.219 273.3);
Tailwind
colors: {
  custom: {
    50: '#8877e3',
    500: '#3e42d5',
    950: '#000000',
  },
}
SCSS
$custom: #3e42d5;
$custom-light: #8877e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42d5",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 238.411,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47891,
    "c": 0.2188,
    "h": 273.3
  },
  "luminance": 0.09725
}

Semantic roles & 50–950 ramp

primary
#3E42D5
secondary
#D8D697
accent
#E341E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3E42D5

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

Preview Lab → · Contrast checker → · Palette generator →

#3E42D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva