#3E42C2#3E42C2

#3E42C2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.195 H 274.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#3E42C2
RGBrgb(62, 66, 194)
HSLhsl(238, 52%, 50%)
HSVhsv(238, 68%, 76%)
CMYKcmyk(68%, 66%, 0%, 23.9%)
CIE-LABlab(35.62, 39.44, -67.33)
CIE-LCHlch(35.62, 78.04, 300.36°)
OKLaboklab(46.13% 0.0147 -0.1944)
OKLCHoklch(46.13% 0.195 274.3)
XYZxyz(13.6692, 8.8143, 52.0095)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42C2 #C2BE3E
analogous
#3E84C2 #3E42C2 #7C3EC2
triadic
#3E42C2 #C23E42 #42C23E
tetradic
#3E42C2 #C23E84 #C2BE3E #3EC27C
square
#3E42C2 #C23E84 #C2BE3E #3EC27C
split-complementary
#3E42C2 #C27C3E #84C23E
monochromatic
#202266 #2F3294 #3E42C2 #6D70D1 #9B9DDF

Accessibility & contrast

On white

7.60
#3E42C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3E42C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42C2
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42C2#FFFFFF#000000##FFFFFF
##3E42C21.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004EC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3e42c2;
/* rgb */ color: rgb(62, 66, 194);
/* oklch */ color: oklch(46.1% 0.195 274.3);
Tailwind
colors: {
  custom: {
    50: '#8477d6',
    500: '#3e42c2',
    950: '#000000',
  },
}
SCSS
$custom: #3e42c2;
$custom-light: #8477d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42c2",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 238.182,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46125,
    "c": 0.19497,
    "h": 274.3
  },
  "luminance": 0.08816
}

Semantic roles & 50–950 ramp

primary
#3E42C2
secondary
#CBCA90
accent
#D74CDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3E42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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