#3F31BB#3F31BB

#3F31BB is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.9% C 0.204 H 277.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#3F31BB
RGBrgb(63, 49, 187)
HSLhsl(246, 58%, 46%)
HSVhsv(246, 74%, 73%)
CMYKcmyk(66.3%, 73.8%, 0%, 26.7%)
CIE-LABlab(31.44, 47.15, -70.09)
CIE-LCHlch(31.44, 84.47, 303.93°)
OKLaboklab(42.94% 0.0282 -0.2024)
OKLCHoklch(42.94% 0.204 277.9)
XYZxyz(12.1150, 6.8402, 47.6859)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31BB #ADBB31
analogous
#3168BB #3F31BB #8431BB
triadic
#3F31BB #BB3F31 #31BB3F
tetradic
#3F31BB #BB3168 #ADBB31 #31BB84
square
#3F31BB #BB3168 #ADBB31 #31BB84
split-complementary
#3F31BB #BB8431 #68BB31
monochromatic
#1E185A #2F248B #3F31BB #6356D3 #9087E0

Accessibility & contrast

On white

8.87
#3F31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3F31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31BB
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31BB#FFFFFF#000000##FFFFFF
##3F31BB1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3f31bb;
/* rgb */ color: rgb(63, 49, 187);
/* oklch */ color: oklch(42.9% 0.204 277.9);
Tailwind
colors: {
  custom: {
    50: '#856bd1',
    500: '#3f31bb',
    950: '#000000',
  },
}
SCSS
$custom: #3f31bb;
$custom-light: #856bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31bb",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 246.087,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42941,
    "c": 0.20438,
    "h": 277.9
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#3F31BB
secondary
#C2C97F
accent
#E246D2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3F31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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