#3F31BC#3F31BC

#3F31BC is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.0% C 0.206 H 277.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#3F31BC
RGBrgb(63, 49, 188)
HSLhsl(246, 59%, 46%)
HSVhsv(246, 74%, 74%)
CMYKcmyk(66.5%, 73.9%, 0%, 26.3%)
CIE-LABlab(31.54, 47.46, -70.52)
CIE-LCHlch(31.54, 85.00, 303.94°)
OKLaboklab(43.04% 0.028 -0.2037)
OKLCHoklch(43.04% 0.206 277.8)
XYZxyz(12.2224, 6.8832, 48.2517)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31BC #AEBC31
analogous
#3169BC #3F31BC #8531BC
triadic
#3F31BC #BC3F31 #31BC3F
tetradic
#3F31BC #BC3169 #AEBC31 #31BC85
square
#3F31BC #BC3169 #AEBC31 #31BC85
split-complementary
#3F31BC #BC8531 #69BC31
monochromatic
#1E185B #2F248B #3F31BC #6457D3 #9088E0

Accessibility & contrast

On white

8.84
#3F31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3F31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31BC
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31BC#FFFFFF#000000##FFFFFF
##3F31BC1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3f31bc;
/* rgb */ color: rgb(63, 49, 188);
/* oklch */ color: oklch(43.0% 0.206 277.8);
Tailwind
colors: {
  custom: {
    50: '#856cd1',
    500: '#3f31bc',
    950: '#000000',
  },
}
SCSS
$custom: #3f31bc;
$custom-light: #856cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31bc",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 246.043,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43041,
    "c": 0.20559,
    "h": 277.8
  },
  "luminance": 0.06884
}

Semantic roles & 50–950 ramp

primary
#3F31BC
secondary
#C2CA7F
accent
#E246D2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3F31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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