#3F31AC#3F31AC

#3F31AC is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.5% C 0.186 H 279.7°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#3F31AC
RGBrgb(63, 49, 172)
HSLhsl(247, 56%, 43%)
HSVhsv(247, 72%, 67%)
CMYKcmyk(63.4%, 71.5%, 0%, 32.5%)
CIE-LABlab(29.99, 42.39, -63.55)
CIE-LCHlch(29.99, 76.39, 303.70°)
OKLaboklab(41.47% 0.0312 -0.1833)
OKLCHoklch(41.47% 0.186 279.7)
XYZxyz(10.5922, 6.2311, 39.6663)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31AC #9EAC31
analogous
#3160AC #3F31AC #7C31AC
triadic
#3F31AC #AC3F31 #31AC3F
tetradic
#3F31AC #AC3160 #9EAC31 #31AC7C
square
#3F31AC #AC3160 #9EAC31 #31AC7C
split-complementary
#3F31AC #AC7C31 #60AC31
monochromatic
#1C164D #2E237C #3F31AC #5C4ECC #887DDA

Accessibility & contrast

On white

9.35
#3F31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3F31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31AC
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31AC#FFFFFF#000000##FFFFFF
##3F31AC1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3f31ac;
/* rgb */ color: rgb(63, 49, 172);
/* oklch */ color: oklch(41.5% 0.186 279.7);
Tailwind
colors: {
  custom: {
    50: '#826bc6',
    500: '#3f31ac',
    950: '#000000',
  },
}
SCSS
$custom: #3f31ac;
$custom-light: #826bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31ac",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 246.829,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4147,
    "c": 0.18596,
    "h": 279.7
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#3F31AC
secondary
#BAC376
accent
#DF49CE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3F31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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