#3F31B5#3F31B5

#3F31B5 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.3% C 0.197 H 278.6°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#3F31B5
RGBrgb(63, 49, 181)
HSLhsl(246, 57%, 45%)
HSVhsv(246, 73%, 71%)
CMYKcmyk(65.2%, 72.9%, 0%, 29%)
CIE-LABlab(30.85, 45.25, -67.50)
CIE-LCHlch(30.85, 81.27, 303.84°)
OKLaboklab(42.35% 0.0295 -0.1949)
OKLCHoklch(42.35% 0.197 278.6)
XYZxyz(11.4860, 6.5886, 44.3735)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31B5 #A7B531
analogous
#3165B5 #3F31B5 #8131B5
triadic
#3F31B5 #B53F31 #31B53F
tetradic
#3F31B5 #B53165 #A7B531 #31B581
square
#3F31B5 #B53165 #A7B531 #31B581
split-complementary
#3F31B5 #B58131 #65B531
monochromatic
#1D1755 #2E2485 #3F31B5 #6053D0 #8D83DD

Accessibility & contrast

On white

9.06
#3F31B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3F31B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31B5
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31B5#FFFFFF#000000##FFFFFF
##3F31B51.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3f31b5;
/* rgb */ color: rgb(63, 49, 181);
/* oklch */ color: oklch(42.3% 0.197 278.6);
Tailwind
colors: {
  custom: {
    50: '#836bcc',
    500: '#3f31b5',
    950: '#000000',
  },
}
SCSS
$custom: #3f31b5;
$custom-light: #836bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31b5",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 246.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42346,
    "c": 0.19708,
    "h": 278.6
  },
  "luminance": 0.0659
}

Semantic roles & 50–950 ramp

primary
#3F31B5
secondary
#BFC77B
accent
#E147D0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3F31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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