#3E42C8#3E42C8

#3E42C8 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.7% C 0.203 H 274.0°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#3E42C8
RGBrgb(62, 66, 200)
HSLhsl(238, 56%, 51%)
HSVhsv(238, 69%, 78%)
CMYKcmyk(69%, 67%, 0%, 21.6%)
CIE-LABlab(36.16, 41.47, -69.96)
CIE-LCHlch(36.16, 81.33, 300.66°)
OKLaboklab(46.67% 0.0141 -0.2021)
OKLCHoklch(46.67% 0.203 274)
XYZxyz(14.3567, 9.0893, 55.6302)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42C8 #C8C43E
analogous
#3E87C8 #3E42C8 #7F3EC8
triadic
#3E42C8 #C83E42 #42C83E
tetradic
#3E42C8 #C83E87 #C8C43E #3EC87F
square
#3E42C8 #C83E87 #C8C43E #3EC87F
split-complementary
#3E42C8 #C87F3E #87C83E
monochromatic
#1F216D #2D309C #3E42C8 #6E71D6 #9D9FE3

Accessibility & contrast

On white

7.45
#3E42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3E42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42C8
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42C8#FFFFFF#000000##FFFFFF
##3E42C81.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3e42c8;
/* rgb */ color: rgb(62, 66, 200);
/* oklch */ color: oklch(46.7% 0.203 274.0);
Tailwind
colors: {
  custom: {
    50: '#8577da',
    500: '#3e42c8',
    950: '#000000',
  },
}
SCSS
$custom: #3e42c8;
$custom-light: #8577da;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42c8",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 238.261,
    "s": 55.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.46674,
    "c": 0.20261,
    "h": 274
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

primary
#3E42C8
secondary
#CFCE92
accent
#DB49DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3E42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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