#3F42D2#3F42D2

#3F42D2 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.215 H 273.8°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#3F42D2
RGBrgb(63, 66, 210)
HSLhsl(239, 62%, 54%)
HSVhsv(239, 70%, 82%)
CMYKcmyk(70%, 68.6%, 0%, 17.6%)
CIE-LABlab(37.12, 44.93, -74.17)
CIE-LCHlch(37.12, 86.72, 301.21°)
OKLaboklab(47.67% 0.0141 -0.2144)
OKLCHoklch(47.67% 0.215 273.8)
XYZxyz(15.6271, 9.6048, 61.9906)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42D2 #D2CF3F
analogous
#3F8BD2 #3F42D2 #863FD2
triadic
#3F42D2 #D23F42 #42D23F
tetradic
#3F42D2 #D23F8B #D2CF3F #3FD286
square
#3F42D2 #D23F8B #D2CF3F #3FD286
split-complementary
#3F42D2 #D2863F #8BD23F
monochromatic
#1D1F7A #282BAC #3F42D2 #7173DE #A2A4E9

Accessibility & contrast

On white

7.19
#3F42D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#3F42D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42D2
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42D2#FFFFFF#000000##FFFFFF
##3F42D21.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0050CF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3f42d2;
/* rgb */ color: rgb(63, 66, 210);
/* oklch */ color: oklch(47.7% 0.215 273.8);
Tailwind
colors: {
  custom: {
    50: '#8877e1',
    500: '#3f42d2',
    950: '#000000',
  },
}
SCSS
$custom: #3f42d2;
$custom-light: #8877e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42d2",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 238.776,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47666,
    "c": 0.21485,
    "h": 273.8
  },
  "luminance": 0.09606
}

Semantic roles & 50–950 ramp

primary
#3F42D2
secondary
#D6D597
accent
#E243E5
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #3F42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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