#3F42B8#3F42B8

#3F42B8 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.182 H 275.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#3F42B8
RGBrgb(63, 66, 184)
HSLhsl(239, 49%, 48%)
HSVhsv(239, 66%, 72%)
CMYKcmyk(65.8%, 64.1%, 0%, 27.8%)
CIE-LABlab(34.83, 36.17, -62.76)
CIE-LCHlch(34.83, 72.44, 299.96°)
OKLaboklab(45.3% 0.0167 -0.181)
OKLCHoklch(45.3% 0.182 275.3)
XYZxyz(12.6470, 8.4128, 46.2955)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42B8 #B8B53F
analogous
#3F7EB8 #3F42B8 #783FB8
triadic
#3F42B8 #B83F42 #42B83F
tetradic
#3F42B8 #B83F7E #B8B53F #3FB878
square
#3F42B8 #B83F7E #B8B53F #3FB878
split-complementary
#3F42B8 #B8783F #7EB83F
monochromatic
#20215D #2F328A #3F42B8 #696BCC #9698DB

Accessibility & contrast

On white

7.83
#3F42B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3F42B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42B8
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42B8#FFFFFF#000000##FFFFFF
##3F42B81.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3f42b8;
/* rgb */ color: rgb(63, 66, 184);
/* oklch */ color: oklch(45.3% 0.182 275.3);
Tailwind
colors: {
  custom: {
    50: '#8377ce',
    500: '#3f42b8',
    950: '#000000',
  },
}
SCSS
$custom: #3f42b8;
$custom-light: #8377ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42b8",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 238.512,
    "s": 48.988,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45296,
    "c": 0.18175,
    "h": 275.3
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#3F42B8
secondary
#C7C58C
accent
#D54FD9
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3F42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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