#3F31C5#3F31C5

#3F31C5 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.0% C 0.216 H 276.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#3F31C5
RGBrgb(63, 49, 197)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 77%)
CMYKcmyk(68%, 75.1%, 0%, 22.7%)
CIE-LABlab(32.44, 50.27, -74.32)
CIE-LCHlch(32.44, 89.72, 304.08°)
OKLaboklab(43.95% 0.0261 -0.2147)
OKLCHoklch(43.95% 0.216 276.9)
XYZxyz(13.2230, 7.2834, 53.5215)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31C5 #B7C531
analogous
#316DC5 #3F31C5 #8931C5
triadic
#3F31C5 #C53F31 #31C53F
tetradic
#3F31C5 #C5316D #B7C531 #31C589
square
#3F31C5 #C5316D #B7C531 #31C589
split-complementary
#3F31C5 #C58931 #6DC531
monochromatic
#201963 #2F2594 #3F31C5 #685DD7 #968EE3

Accessibility & contrast

On white

8.55
#3F31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3F31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31C5
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31C5#FFFFFF#000000##FFFFFF
##3F31C51.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C9
Deuteranopia (green-blind)
#0046C2
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3f31c5;
/* rgb */ color: rgb(63, 49, 197);
/* oklch */ color: oklch(44.0% 0.216 276.9);
Tailwind
colors: {
  custom: {
    50: '#876cd8',
    500: '#3f31c5',
    950: '#000000',
  },
}
SCSS
$custom: #3f31c5;
$custom-light: #876cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31c5",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 245.676,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4395,
    "c": 0.21633,
    "h": 276.9
  },
  "luminance": 0.07285
}

Semantic roles & 50–950 ramp

primary
#3F31C5
secondary
#C6CD85
accent
#E344D4
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3F31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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