#3F41B2#3F41B2

#3F41B2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.6% C 0.175 H 275.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#3F41B2
RGBrgb(63, 65, 178)
HSLhsl(239, 48%, 47%)
HSVhsv(239, 65%, 70%)
CMYKcmyk(64.6%, 63.5%, 0%, 30.2%)
CIE-LABlab(34.09, 34.75, -60.41)
CIE-LCHlch(34.09, 69.70, 299.91°)
OKLaboklab(44.6% 0.0179 -0.1741)
OKLCHoklch(44.6% 0.175 275.9)
XYZxyz(11.9734, 8.0507, 43.0338)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F41B2 #B2B03F
analogous
#3F7AB2 #3F41B2 #773FB2
triadic
#3F41B2 #B23F41 #41B23F
tetradic
#3F41B2 #B23F7A #B2B03F #3FB277
square
#3F41B2 #B23F7A #B2B03F #3FB277
split-complementary
#3F41B2 #B2773F #7AB23F
monochromatic
#1F2058 #2F3085 #3F41B2 #6667C9 #9394D9

Accessibility & contrast

On white

8.04
#3F41B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3F41B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F41B2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F41B2#FFFFFF#000000##FFFFFF
##3F41B21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3f41b2;
/* rgb */ color: rgb(63, 65, 178);
/* oklch */ color: oklch(44.6% 0.175 275.9);
Tailwind
colors: {
  custom: {
    50: '#8176ca',
    500: '#3f41b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f41b2;
$custom-light: #8176ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f41b2",
  "rgb": {
    "r": 63,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 238.957,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44599,
    "c": 0.17503,
    "h": 275.9
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#3F41B2
secondary
#C4C389
accent
#D550D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3F41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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