#3F31C2#3F31C2

#3F31C2 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.6% C 0.213 H 277.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#3F31C2
RGBrgb(63, 49, 194)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 76%)
CMYKcmyk(67.5%, 74.7%, 0%, 23.9%)
CIE-LABlab(32.14, 49.34, -73.06)
CIE-LCHlch(32.14, 88.16, 304.03°)
OKLaboklab(43.65% 0.0267 -0.2111)
OKLCHoklch(43.65% 0.213 277.2)
XYZxyz(12.8827, 7.1473, 51.7291)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31C2 #B4C231
analogous
#316CC2 #3F31C2 #8731C2
triadic
#3F31C2 #C23F31 #31C23F
tetradic
#3F31C2 #C2316C #B4C231 #31C287
square
#3F31C2 #C2316C #B4C231 #31C287
split-complementary
#3F31C2 #C28731 #6CC231
monochromatic
#1F1860 #2F2591 #3F31C2 #675BD6 #948CE2

Accessibility & contrast

On white

8.64
#3F31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3F31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31C2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31C2#FFFFFF#000000##FFFFFF
##3F31C21.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#0045BF
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3f31c2;
/* rgb */ color: rgb(63, 49, 194);
/* oklch */ color: oklch(43.6% 0.213 277.2);
Tailwind
colors: {
  custom: {
    50: '#866cd6',
    500: '#3f31c2',
    950: '#000000',
  },
}
SCSS
$custom: #3f31c2;
$custom-light: #866cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31c2",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 245.793,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43645,
    "c": 0.21278,
    "h": 277.2
  },
  "luminance": 0.07148
}

Semantic roles & 50–950 ramp

primary
#3F31C2
secondary
#C5CC83
accent
#E345D4
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #3F31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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