#3F42BF#3F42BF

#3F42BF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.9% C 0.191 H 274.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#3F42BF
RGBrgb(63, 66, 191)
HSLhsl(239, 50%, 50%)
HSVhsv(239, 67%, 75%)
CMYKcmyk(67%, 65.4%, 0%, 25.1%)
CIE-LABlab(35.43, 38.56, -65.90)
CIE-LCHlch(35.43, 76.35, 300.33°)
OKLaboklab(45.92% 0.0161 -0.1902)
OKLCHoklch(45.92% 0.191 274.9)
XYZxyz(13.3990, 8.7136, 50.2559)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42BF #BFBC3F
analogous
#3F82BF #3F42BF #7C3FBF
triadic
#3F42BF #BF3F42 #42BF3F
tetradic
#3F42BF #BF3F82 #BFBC3F #3FBF7C
square
#3F42BF #BF3F82 #BFBC3F #3FBF7C
split-complementary
#3F42BF #BF7C3F #82BF3F
monochromatic
#212263 #303291 #3F42BF #6D6FCF #9B9CDE

Accessibility & contrast

On white

7.66
#3F42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3F42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42BF
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42BF#FFFFFF#000000##FFFFFF
##3F42BF1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004EBD
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3f42bf;
/* rgb */ color: rgb(63, 66, 191);
/* oklch */ color: oklch(45.9% 0.191 274.9);
Tailwind
colors: {
  custom: {
    50: '#8477d3',
    500: '#3f42bf',
    950: '#000000',
  },
}
SCSS
$custom: #3f42bf;
$custom-light: #8477d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42bf",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 238.594,
    "s": 50.394,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45918,
    "c": 0.19086,
    "h": 274.9
  },
  "luminance": 0.08715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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