#3F42C3#3F42C3

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

Color values

HEX#3F42C3
RGBrgb(63, 66, 195)
HSLhsl(239, 52%, 51%)
HSVhsv(239, 68%, 76%)
CMYKcmyk(67.7%, 66.2%, 0%, 23.5%)
CIE-LABlab(35.78, 39.91, -67.67)
CIE-LCHlch(35.78, 78.56, 300.53°)
OKLaboklab(46.28% 0.0158 -0.1954)
OKLCHoklch(46.28% 0.196 274.6)
XYZxyz(13.8452, 8.8921, 52.6059)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42C3 #C3C03F
analogous
#3F84C3 #3F42C3 #7E3FC3
triadic
#3F42C3 #C33F42 #42C33F
tetradic
#3F42C3 #C33F84 #C3C03F #3FC37E
square
#3F42C3 #C33F84 #C3C03F #3FC37E
split-complementary
#3F42C3 #C37E3F #84C33F
monochromatic
#202267 #2F3196 #3F42C3 #6E70D2 #9C9EE0

Accessibility & contrast

On white

7.56
#3F42C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3F42C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42C3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42C3#FFFFFF#000000##FFFFFF
##3F42C31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f42c3;
/* rgb */ color: rgb(63, 66, 195);
/* oklch */ color: oklch(46.3% 0.196 274.6);
Tailwind
colors: {
  custom: {
    50: '#8577d6',
    500: '#3f42c3',
    950: '#000000',
  },
}
SCSS
$custom: #3f42c3;
$custom-light: #8577d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42c3",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 238.636,
    "s": 52.381,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46279,
    "c": 0.196,
    "h": 274.6
  },
  "luminance": 0.08893
}

Semantic roles & 50–950 ramp

primary
#3F42C3
secondary
#CCCB92
accent
#D94CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F42C3

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

Preview Lab → · Contrast checker → · Palette generator →

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