#3F42C1#3F42C1

#3F42C1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.193 H 274.7°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#3F42C1
RGBrgb(63, 66, 193)
HSLhsl(239, 51%, 50%)
HSVhsv(239, 67%, 76%)
CMYKcmyk(67.4%, 65.8%, 0%, 24.3%)
CIE-LABlab(35.60, 39.23, -66.78)
CIE-LCHlch(35.60, 77.46, 300.43°)
OKLaboklab(46.1% 0.016 -0.1928)
OKLCHoklch(46.1% 0.193 274.7)
XYZxyz(13.6206, 8.8022, 51.4229)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42C1 #C1BE3F
analogous
#3F83C1 #3F42C1 #7D3FC1
triadic
#3F42C1 #C13F42 #42C13F
tetradic
#3F42C1 #C13F83 #C1BE3F #3FC17D
square
#3F42C1 #C13F83 #C1BE3F #3FC17D
split-complementary
#3F42C1 #C17D3F #83C13F
monochromatic
#212265 #303293 #3F42C1 #6D70D0 #9C9DDF

Accessibility & contrast

On white

7.61
#3F42C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3F42C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42C1
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42C1#FFFFFF#000000##FFFFFF
##3F42C11.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC5
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3f42c1;
/* rgb */ color: rgb(63, 66, 193);
/* oklch */ color: oklch(46.1% 0.193 274.7);
Tailwind
colors: {
  custom: {
    50: '#8477d5',
    500: '#3f42c1',
    950: '#000000',
  },
}
SCSS
$custom: #3f42c1;
$custom-light: #8477d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42c1",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 238.615,
    "s": 51.181,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46098,
    "c": 0.19344,
    "h": 274.7
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

primary
#3F42C1
secondary
#CBCA91
accent
#D74DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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