#3F42D9#3F42D9

#3F42D9 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.3% C 0.223 H 273.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#3F42D9
RGBrgb(63, 66, 217)
HSLhsl(239, 67%, 55%)
HSVhsv(239, 71%, 85%)
CMYKcmyk(71%, 69.6%, 0%, 14.9%)
CIE-LABlab(37.77, 47.25, -77.13)
CIE-LCHlch(37.77, 90.45, 301.49°)
OKLaboklab(48.33% 0.0132 -0.223)
OKLCHoklch(48.33% 0.223 273.4)
XYZxyz(16.5183, 9.9613, 66.6844)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42D9 #D9D63F
analogous
#3F8FD9 #3F42D9 #893FD9
triadic
#3F42D9 #D93F42 #42D93F
tetradic
#3F42D9 #D93F8F #D9D63F #3FD989
square
#3F42D9 #D93F8F #D9D63F #3FD989
split-complementary
#3F42D9 #D9893F #8FD93F
monochromatic
#1A1C84 #2427B7 #3F42D9 #7274E3 #A5A7ED

Accessibility & contrast

On white

7.02
#3F42D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3F42D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42D9
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42D9#FFFFFF#000000##FFFFFF
##3F42D91.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0052D6
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3f42d9;
/* rgb */ color: rgb(63, 66, 217);
/* oklch */ color: oklch(48.3% 0.223 273.4);
Tailwind
colors: {
  custom: {
    50: '#8977e6',
    500: '#3f42d9',
    950: '#000000',
  },
}
SCSS
$custom: #3f42d9;
$custom-light: #8977e6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42d9",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 238.831,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.4833,
    "c": 0.22344,
    "h": 273.4
  },
  "luminance": 0.09963
}

Semantic roles & 50–950 ramp

primary
#3F42D9
secondary
#DAD99A
accent
#E73EEA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3F42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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