#3F42C5#3F42C5

#3F42C5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.199 H 274.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#3F42C5
RGBrgb(63, 66, 197)
HSLhsl(239, 54%, 51%)
HSVhsv(239, 68%, 77%)
CMYKcmyk(68%, 66.5%, 0%, 22.7%)
CIE-LABlab(35.95, 40.59, -68.55)
CIE-LCHlch(35.95, 79.66, 300.63°)
OKLaboklab(46.46% 0.0156 -0.1979)
OKLCHoklch(46.46% 0.199 274.5)
XYZxyz(14.0728, 8.9831, 53.8048)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42C5 #C5C23F
analogous
#3F85C5 #3F42C5 #7F3FC5
triadic
#3F42C5 #C53F42 #42C53F
tetradic
#3F42C5 #C53F85 #C5C23F #3FC57F
square
#3F42C5 #C53F85 #C5C23F #3FC57F
split-complementary
#3F42C5 #C57F3F #85C53F
monochromatic
#20226A #2E3199 #3F42C5 #6E70D3 #9D9FE1

Accessibility & contrast

On white

7.51
#3F42C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3F42C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42C5
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42C5#FFFFFF#000000##FFFFFF
##3F42C51.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3f42c5;
/* rgb */ color: rgb(63, 66, 197);
/* oklch */ color: oklch(46.5% 0.199 274.5);
Tailwind
colors: {
  custom: {
    50: '#8577d8',
    500: '#3f42c5',
    950: '#000000',
  },
}
SCSS
$custom: #3f42c5;
$custom-light: #8577d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42c5",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 238.657,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46461,
    "c": 0.19856,
    "h": 274.5
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#3F42C5
secondary
#CECC92
accent
#DA4BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3F42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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