#3F42D5#3F42D5

#3F42D5 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 47.9% C 0.219 H 273.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#3F42D5
RGBrgb(63, 66, 213)
HSLhsl(239, 64%, 54%)
HSVhsv(239, 70%, 84%)
CMYKcmyk(70.4%, 69%, 0%, 16.5%)
CIE-LABlab(37.40, 45.93, -75.44)
CIE-LCHlch(37.40, 88.33, 301.33°)
OKLaboklab(47.95% 0.0137 -0.2181)
OKLCHoklch(47.95% 0.219 273.6)
XYZxyz(16.0043, 9.7557, 63.9775)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42D5 #D5D23F
analogous
#3F8DD5 #3F42D5 #873FD5
triadic
#3F42D5 #D53F42 #42D53F
tetradic
#3F42D5 #D53F8D #D5D23F #3FD587
square
#3F42D5 #D53F8D #D5D23F #3FD587
split-complementary
#3F42D5 #D5873F #8DD53F
monochromatic
#1C1E7E #2729B0 #3F42D5 #7173E0 #A3A5EB

Accessibility & contrast

On white

7.12
#3F42D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3F42D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42D5
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42D5#FFFFFF#000000##FFFFFF
##3F42D51.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0051D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3f42d5;
/* rgb */ color: rgb(63, 66, 213);
/* oklch */ color: oklch(47.9% 0.219 273.6);
Tailwind
colors: {
  custom: {
    50: '#8977e3',
    500: '#3f42d5',
    950: '#000000',
  },
}
SCSS
$custom: #3f42d5;
$custom-light: #8977e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42d5",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 238.8,
    "s": 64.103,
    "l": 54.118
  },
  "oklch": {
    "l": 0.47949,
    "c": 0.21855,
    "h": 273.6
  },
  "luminance": 0.09757
}

Semantic roles & 50–950 ramp

primary
#3F42D5
secondary
#D8D798
accent
#E441E7
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3F42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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