#3F31B7#3F31B7

#3F31B7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.5% C 0.200 H 278.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#3F31B7
RGBrgb(63, 49, 183)
HSLhsl(246, 58%, 45%)
HSVhsv(246, 73%, 72%)
CMYKcmyk(65.6%, 73.2%, 0%, 28.2%)
CIE-LABlab(31.05, 45.89, -68.37)
CIE-LCHlch(31.05, 82.34, 303.87°)
OKLaboklab(42.54% 0.0291 -0.1974)
OKLCHoklch(42.54% 0.2 278.4)
XYZxyz(11.6927, 6.6713, 45.4621)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31B7 #A9B731
analogous
#3166B7 #3F31B7 #8231B7
triadic
#3F31B7 #B73F31 #31B73F
tetradic
#3F31B7 #B73166 #A9B731 #31B782
square
#3F31B7 #B73166 #A9B731 #31B782
split-complementary
#3F31B7 #B78231 #66B731
monochromatic
#1E1756 #2E2487 #3F31B7 #6154D1 #8E84DE

Accessibility & contrast

On white

9.00
#3F31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3F31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31B7
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31B7#FFFFFF#000000##FFFFFF
##3F31B71.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3f31b7;
/* rgb */ color: rgb(63, 49, 183);
/* oklch */ color: oklch(42.5% 0.200 278.4);
Tailwind
colors: {
  custom: {
    50: '#846bce',
    500: '#3f31b7',
    950: '#000000',
  },
}
SCSS
$custom: #3f31b7;
$custom-light: #846bce;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31b7",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 246.269,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.19953,
    "h": 278.4
  },
  "luminance": 0.06672
}

Semantic roles & 50–950 ramp

primary
#3F31B7
secondary
#C0C87C
accent
#E147D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3F31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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