#3E42BC#3E42BC

#3E42BC is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.187 H 274.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#3E42BC
RGBrgb(62, 66, 188)
HSLhsl(238, 50%, 49%)
HSVhsv(238, 67%, 74%)
CMYKcmyk(67%, 64.9%, 0%, 26.3%)
CIE-LABlab(35.10, 37.40, -64.67)
CIE-LCHlch(35.10, 74.70, 300.04°)
OKLaboklab(45.59% 0.0152 -0.1866)
OKLCHoklch(45.59% 0.187 274.7)
XYZxyz(13.0089, 8.5502, 48.5320)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42BC #BCB83E
analogous
#3E81BC #3E42BC #793EBC
triadic
#3E42BC #BC3E42 #42BC3E
tetradic
#3E42BC #BC3E81 #BCB83E #3EBC79
square
#3E42BC #BC3E81 #BCB83E #3EBC79
split-complementary
#3E42BC #BC793E #81BC3E
monochromatic
#202260 #2F328E #3E42BC #6A6DCE #989ADD

Accessibility & contrast

On white

7.75
#3E42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3E42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42BC
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42BC#FFFFFF#000000##FFFFFF
##3E42BC1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3e42bc;
/* rgb */ color: rgb(62, 66, 188);
/* oklch */ color: oklch(45.6% 0.187 274.7);
Tailwind
colors: {
  custom: {
    50: '#8377d1',
    500: '#3e42bc',
    950: '#000000',
  },
}
SCSS
$custom: #3e42bc;
$custom-light: #8377d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42bc",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 238.095,
    "s": 50.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45585,
    "c": 0.18722,
    "h": 274.7
  },
  "luminance": 0.08551
}

Semantic roles & 50–950 ramp

primary
#3E42BC
secondary
#C9C78D
accent
#D54EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3E42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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