#3E42C5#3E42C5

#3E42C5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.4% C 0.199 H 274.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#3E42C5
RGBrgb(62, 66, 197)
HSLhsl(238, 54%, 51%)
HSVhsv(238, 69%, 77%)
CMYKcmyk(68.5%, 66.5%, 0%, 22.7%)
CIE-LABlab(35.89, 40.46, -68.65)
CIE-LCHlch(35.89, 79.69, 300.51°)
OKLaboklab(46.4% 0.0144 -0.1983)
OKLCHoklch(46.4% 0.199 274.2)
XYZxyz(14.0095, 8.9505, 53.8018)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42C5 #C5C13E
analogous
#3E85C5 #3E42C5 #7D3EC5
triadic
#3E42C5 #C53E42 #42C53E
tetradic
#3E42C5 #C53E85 #C5C13E #3EC57D
square
#3E42C5 #C53E85 #C5C13E #3EC57D
split-complementary
#3E42C5 #C57D3E #85C53E
monochromatic
#202269 #2E3198 #3E42C5 #6D70D3 #9C9EE1

Accessibility & contrast

On white

7.53
#3E42C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3E42C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42C5
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42C5#FFFFFF#000000##FFFFFF
##3E42C51.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3e42c5;
/* rgb */ color: rgb(62, 66, 197);
/* oklch */ color: oklch(46.4% 0.199 274.2);
Tailwind
colors: {
  custom: {
    50: '#8577d8',
    500: '#3e42c5',
    950: '#000000',
  },
}
SCSS
$custom: #3e42c5;
$custom-light: #8577d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42c5",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 238.222,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46398,
    "c": 0.1988,
    "h": 274.2
  },
  "luminance": 0.08952
}

Semantic roles & 50–950 ramp

primary
#3E42C5
secondary
#CDCC91
accent
#D94BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3E42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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