#3E42D1#3E42D1

#3E42D1 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.214 H 273.5°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#3E42D1
RGBrgb(62, 66, 209)
HSLhsl(238, 62%, 53%)
HSVhsv(238, 70%, 82%)
CMYKcmyk(70.3%, 68.4%, 0%, 18%)
CIE-LABlab(36.97, 44.49, -73.84)
CIE-LCHlch(36.97, 86.21, 301.07°)
OKLaboklab(47.51% 0.0131 -0.2135)
OKLCHoklch(47.51% 0.214 273.5)
XYZxyz(15.4396, 9.5225, 61.3336)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42D1 #D1CD3E
analogous
#3E8CD1 #3E42D1 #833ED1
triadic
#3E42D1 #D13E42 #42D13E
tetradic
#3E42D1 #D13E8C #D1CD3E #3ED183
square
#3E42D1 #D13E8C #D1CD3E #3ED183
split-complementary
#3E42D1 #D1833E #8CD13E
monochromatic
#1D1F78 #282CA9 #3E42D1 #6F72DD #A1A3E9

Accessibility & contrast

On white

7.23
#3E42D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#3E42D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42D1
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42D1#FFFFFF#000000##FFFFFF
##3E42D11.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0050CE
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3e42d1;
/* rgb */ color: rgb(62, 66, 209);
/* oklch */ color: oklch(47.5% 0.214 273.5);
Tailwind
colors: {
  custom: {
    50: '#8777e0',
    500: '#3e42d1',
    950: '#000000',
  },
}
SCSS
$custom: #3e42d1;
$custom-light: #8777e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42d1",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 238.367,
    "s": 61.506,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47512,
    "c": 0.21387,
    "h": 273.5
  },
  "luminance": 0.09524
}

Semantic roles & 50–950 ramp

primary
#3E42D1
secondary
#D5D396
accent
#E043E5
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #3E42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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