#3F42C0#3F42C0

#3F42C0 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.0% C 0.192 H 274.8°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#3F42C0
RGBrgb(63, 66, 192)
HSLhsl(239, 51%, 50%)
HSVhsv(239, 67%, 75%)
CMYKcmyk(67.2%, 65.6%, 0%, 24.7%)
CIE-LABlab(35.51, 38.90, -66.34)
CIE-LCHlch(35.51, 76.90, 300.38°)
OKLaboklab(46.01% 0.016 -0.1915)
OKLCHoklch(46.01% 0.192 274.8)
XYZxyz(13.5094, 8.7577, 50.8374)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42C0 #C0BD3F
analogous
#3F82C0 #3F42C0 #7D3FC0
triadic
#3F42C0 #C03F42 #42C03F
tetradic
#3F42C0 #C03F82 #C0BD3F #3FC07D
square
#3F42C0 #C03F82 #C0BD3F #3FC07D
split-complementary
#3F42C0 #C07D3F #82C03F
monochromatic
#212264 #303292 #3F42C0 #6D6FCF #9B9DDE

Accessibility & contrast

On white

7.63
#3F42C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3F42C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42C0
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42C0#FFFFFF#000000##FFFFFF
##3F42C01.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#004EBE
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3f42c0;
/* rgb */ color: rgb(63, 66, 192);
/* oklch */ color: oklch(46.0% 0.192 274.8);
Tailwind
colors: {
  custom: {
    50: '#8477d4',
    500: '#3f42c0',
    950: '#000000',
  },
}
SCSS
$custom: #3f42c0;
$custom-light: #8477d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42c0",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 238.605,
    "s": 50.588,
    "l": 50
  },
  "oklch": {
    "l": 0.46008,
    "c": 0.19215,
    "h": 274.8
  },
  "luminance": 0.08759
}

Semantic roles & 50–950 ramp

primary
#3F42C0
secondary
#CAC991
accent
#D74EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3F42C0

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

Preview Lab → · Contrast checker → · Palette generator →

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