#3F42BA#3F42BA

#3F42BA is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.184 H 275.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3F42BA
RGBrgb(63, 66, 186)
HSLhsl(239, 49%, 49%)
HSVhsv(239, 66%, 73%)
CMYKcmyk(66.1%, 64.5%, 0%, 27.1%)
CIE-LABlab(35.00, 36.86, -63.66)
CIE-LCHlch(35.00, 73.56, 300.07°)
OKLaboklab(45.47% 0.0166 -0.1836)
OKLCHoklch(45.47% 0.184 275.2)
XYZxyz(12.8581, 8.4972, 47.4074)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F42BA #BAB73F
analogous
#3F80BA #3F42BA #7A3FBA
triadic
#3F42BA #BA3F42 #42BA3F
tetradic
#3F42BA #BA3F80 #BAB73F #3FBA7A
square
#3F42BA #BA3F80 #BAB73F #3FBA7A
split-complementary
#3F42BA #BA7A3F #80BA3F
monochromatic
#20225F #30328C #3F42BA #6A6CCC #9799DC

Accessibility & contrast

On white

7.78
#3F42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3F42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F42BA
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F42BA#FFFFFF#000000##FFFFFF
##3F42BA1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3f42ba;
/* rgb */ color: rgb(63, 66, 186);
/* oklch */ color: oklch(45.5% 0.184 275.2);
Tailwind
colors: {
  custom: {
    50: '#8377d0',
    500: '#3f42ba',
    950: '#000000',
  },
}
SCSS
$custom: #3f42ba;
$custom-light: #8377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f42ba",
  "rgb": {
    "r": 63,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 238.537,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45473,
    "c": 0.18437,
    "h": 275.2
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#3F42BA
secondary
#C8C68D
accent
#D64FD9
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3F42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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