#3E42BB#3E42BB

#3E42BB is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.186 H 274.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3E42BB
RGBrgb(62, 66, 187)
HSLhsl(238, 50%, 49%)
HSVhsv(238, 67%, 73%)
CMYKcmyk(66.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(35.02, 37.06, -64.22)
CIE-LCHlch(35.02, 74.14, 299.99°)
OKLaboklab(45.5% 0.0153 -0.1853)
OKLCHoklch(45.5% 0.186 274.7)
XYZxyz(12.9015, 8.5073, 47.9662)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42BB #BBB73E
analogous
#3E81BB #3E42BB #793EBB
triadic
#3E42BB #BB3E42 #42BB3E
tetradic
#3E42BB #BB3E81 #BBB73E #3EBB79
square
#3E42BB #BB3E81 #BBB73E #3EBB79
split-complementary
#3E42BB #BB793E #81BB3E
monochromatic
#20225F #2F328D #3E42BB #696CCD #9799DC

Accessibility & contrast

On white

7.77
#3E42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3E42BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42BB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42BB#FFFFFF#000000##FFFFFF
##3E42BB1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3e42bb;
/* rgb */ color: rgb(62, 66, 187);
/* oklch */ color: oklch(45.5% 0.186 274.7);
Tailwind
colors: {
  custom: {
    50: '#8377d0',
    500: '#3e42bb',
    950: '#000000',
  },
}
SCSS
$custom: #3e42bb;
$custom-light: #8377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42bb",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 238.08,
    "s": 50.201,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45496,
    "c": 0.18592,
    "h": 274.7
  },
  "luminance": 0.08508
}

Semantic roles & 50–950 ramp

primary
#3E42BB
secondary
#C8C68D
accent
#D54EDA
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3E42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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