#3F31C1#3F31C1

#3F31C1 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.5% C 0.212 H 277.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#3F31C1
RGBrgb(63, 49, 193)
HSLhsl(246, 60%, 47%)
HSVhsv(246, 75%, 76%)
CMYKcmyk(67.4%, 74.6%, 0%, 24.3%)
CIE-LABlab(32.04, 49.03, -72.64)
CIE-LCHlch(32.04, 87.63, 304.02°)
OKLaboklab(43.54% 0.0269 -0.2099)
OKLCHoklch(43.54% 0.212 277.3)
XYZxyz(12.7707, 7.1025, 51.1397)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31C1 #B3C131
analogous
#316BC1 #3F31C1 #8731C1
triadic
#3F31C1 #C13F31 #31C13F
tetradic
#3F31C1 #C1316B #B3C131 #31C187
square
#3F31C1 #C1316B #B3C131 #31C187
split-complementary
#3F31C1 #C18731 #6BC131
monochromatic
#1F185F #2F2590 #3F31C1 #665AD5 #938BE2

Accessibility & contrast

On white

8.67
#3F31C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3F31C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31C1
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31C1#FFFFFF#000000##FFFFFF
##3F31C11.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C5
Deuteranopia (green-blind)
#0045BE
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3f31c1;
/* rgb */ color: rgb(63, 49, 193);
/* oklch */ color: oklch(43.5% 0.212 277.3);
Tailwind
colors: {
  custom: {
    50: '#866cd5',
    500: '#3f31c1',
    950: '#000000',
  },
}
SCSS
$custom: #3f31c1;
$custom-light: #866cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31c1",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 245.833,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.43544,
    "c": 0.21158,
    "h": 277.3
  },
  "luminance": 0.07104
}

Semantic roles & 50–950 ramp

primary
#3F31C1
secondary
#C4CC82
accent
#E345D3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #3F31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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