#3F42C4#3F42C4

#3F42C4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.4% C 0.197 H 274.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#3F42C4
RGBrgb(63, 66, 196)
HSLhsl(239, 53%, 51%)
HSVhsv(239, 68%, 77%)
CMYKcmyk(67.9%, 66.3%, 0%, 23.1%)
CIE-LABlab(35.86, 40.25, -68.11)
CIE-LCHlch(35.86, 79.11, 300.58°)
OKLaboklab(46.37% 0.0157 -0.1967)
OKLCHoklch(46.37% 0.197 274.6)
XYZxyz(13.9586, 8.9374, 53.2033)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42C4 #C4C13F
analogous
#3F84C4 #3F42C4 #7F3FC4
triadic
#3F42C4 #C43F42 #42C43F
tetradic
#3F42C4 #C43F84 #C4C13F #3FC47F
square
#3F42C4 #C43F84 #C4C13F #3FC47F
split-complementary
#3F42C4 #C47F3F #84C43F
monochromatic
#202268 #2E3197 #3F42C4 #6E70D2 #9D9EE1

Accessibility & contrast

On white

7.53
#3F42C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3F42C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42C4
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42C4#FFFFFF#000000##FFFFFF
##3F42C41.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3f42c4;
/* rgb */ color: rgb(63, 66, 196);
/* oklch */ color: oklch(46.4% 0.197 274.6);
Tailwind
colors: {
  custom: {
    50: '#8577d7',
    500: '#3f42c4',
    950: '#000000',
  },
}
SCSS
$custom: #3f42c4;
$custom-light: #8577d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42c4",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 238.647,
    "s": 52.988,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4637,
    "c": 0.19728,
    "h": 274.6
  },
  "luminance": 0.08939
}

Semantic roles & 50–950 ramp

primary
#3F42C4
secondary
#CDCC92
accent
#D94BDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3F42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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