#3E42BA#3E42BA

#3E42BA is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.4% C 0.185 H 274.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#3E42BA
RGBrgb(62, 66, 186)
HSLhsl(238, 50%, 49%)
HSVhsv(238, 67%, 73%)
CMYKcmyk(66.7%, 64.5%, 0%, 27.1%)
CIE-LABlab(34.93, 36.72, -63.77)
CIE-LCHlch(34.93, 73.58, 299.93°)
OKLaboklab(45.41% 0.0154 -0.184)
OKLCHoklch(45.41% 0.185 274.8)
XYZxyz(12.7948, 8.4646, 47.4044)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42BA #BAB63E
analogous
#3E80BA #3E42BA #783EBA
triadic
#3E42BA #BA3E42 #42BA3E
tetradic
#3E42BA #BA3E80 #BAB63E #3EBA78
square
#3E42BA #BA3E80 #BAB63E #3EBA78
split-complementary
#3E42BA #BA783E #80BA3E
monochromatic
#1F215E #2F328C #3E42BA #686CCD #9699DC

Accessibility & contrast

On white

7.80
#3E42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3E42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42BA
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42BA#FFFFFF#000000##FFFFFF
##3E42BA1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e42ba;
/* rgb */ color: rgb(62, 66, 186);
/* oklch */ color: oklch(45.4% 0.185 274.8);
Tailwind
colors: {
  custom: {
    50: '#8377d0',
    500: '#3e42ba',
    950: '#000000',
  },
}
SCSS
$custom: #3e42ba;
$custom-light: #8377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42ba",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 238.065,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45408,
    "c": 0.18461,
    "h": 274.8
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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