#3F31C3#3F31C3

#3F31C3 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.7% C 0.214 H 277.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#3F31C3
RGBrgb(63, 49, 195)
HSLhsl(246, 60%, 48%)
HSVhsv(246, 75%, 76%)
CMYKcmyk(67.7%, 74.9%, 0%, 23.5%)
CIE-LABlab(32.24, 49.65, -73.48)
CIE-LCHlch(32.24, 88.68, 304.05°)
OKLaboklab(43.75% 0.0265 -0.2123)
OKLCHoklch(43.75% 0.214 277.1)
XYZxyz(12.9953, 7.1924, 52.3226)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31C3 #B5C331
analogous
#316CC3 #3F31C3 #8831C3
triadic
#3F31C3 #C33F31 #31C33F
tetradic
#3F31C3 #C3316C #B5C331 #31C388
square
#3F31C3 #C3316C #B5C331 #31C388
split-complementary
#3F31C3 #C38831 #6CC331
monochromatic
#1F1861 #2F2592 #3F31C3 #675BD6 #948CE2

Accessibility & contrast

On white

8.61
#3F31C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3F31C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31C3
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31C3#FFFFFF#000000##FFFFFF
##3F31C31.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#0046C0
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3f31c3;
/* rgb */ color: rgb(63, 49, 195);
/* oklch */ color: oklch(43.7% 0.214 277.1);
Tailwind
colors: {
  custom: {
    50: '#866cd6',
    500: '#3f31c3',
    950: '#000000',
  },
}
SCSS
$custom: #3f31c3;
$custom-light: #866cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31c3",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 245.753,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.43746,
    "c": 0.21396,
    "h": 277.1
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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