#3F31C6#3F31C6

#3F31C6 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.1% C 0.218 H 276.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#3F31C6
RGBrgb(63, 49, 198)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 78%)
CMYKcmyk(68.2%, 75.3%, 0%, 22.4%)
CIE-LABlab(32.55, 50.58, -74.73)
CIE-LCHlch(32.55, 90.24, 304.09°)
OKLaboklab(44.05% 0.0259 -0.216)
OKLCHoklch(44.05% 0.218 276.8)
XYZxyz(13.3379, 7.3294, 54.1269)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31C6 #B8C631
analogous
#316DC6 #3F31C6 #8A31C6
triadic
#3F31C6 #C63F31 #31C63F
tetradic
#3F31C6 #C6316D #B8C631 #31C68A
square
#3F31C6 #C6316D #B8C631 #31C68A
split-complementary
#3F31C6 #C68A31 #6DC631
monochromatic
#201964 #2F2595 #3F31C6 #695DD7 #968EE3

Accessibility & contrast

On white

8.52
#3F31C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3F31C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31C6
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31C6#FFFFFF#000000##FFFFFF
##3F31C61.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CA
Deuteranopia (green-blind)
#0046C3
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3f31c6;
/* rgb */ color: rgb(63, 49, 198);
/* oklch */ color: oklch(44.1% 0.218 276.8);
Tailwind
colors: {
  custom: {
    50: '#876cd9',
    500: '#3f31c6',
    950: '#000000',
  },
}
SCSS
$custom: #3f31c6;
$custom-light: #876cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31c6",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 245.638,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44052,
    "c": 0.21751,
    "h": 276.8
  },
  "luminance": 0.07331
}

Semantic roles & 50–950 ramp

primary
#3F31C6
secondary
#C7CE85
accent
#E344D5
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #3F31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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