#3F31AB#3F31AB

#3F31AB is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.4% C 0.185 H 279.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#3F31AB
RGBrgb(63, 49, 171)
HSLhsl(247, 55%, 43%)
HSVhsv(247, 71%, 67%)
CMYKcmyk(63.2%, 71.3%, 0%, 32.9%)
CIE-LABlab(29.89, 42.07, -63.11)
CIE-LCHlch(29.89, 75.84, 303.69°)
OKLaboklab(41.37% 0.0314 -0.182)
OKLCHoklch(41.37% 0.185 279.8)
XYZxyz(10.4966, 6.1929, 39.1624)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31AB #9DAB31
analogous
#3160AB #3F31AB #7C31AB
triadic
#3F31AB #AB3F31 #31AB3F
tetradic
#3F31AB #AB3160 #9DAB31 #31AB7C
square
#3F31AB #AB3160 #9DAB31 #31AB7C
split-complementary
#3F31AB #AB7C31 #60AB31
monochromatic
#1C164C #2D237B #3F31AB #5C4DCC #877DDA

Accessibility & contrast

On white

9.38
#3F31AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3F31AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31AB
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31AB#FFFFFF#000000##FFFFFF
##3F31AB1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3f31ab;
/* rgb */ color: rgb(63, 49, 171);
/* oklch */ color: oklch(41.4% 0.185 279.8);
Tailwind
colors: {
  custom: {
    50: '#816bc5',
    500: '#3f31ab',
    950: '#000000',
  },
}
SCSS
$custom: #3f31ab;
$custom-light: #816bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31ab",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 246.885,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41374,
    "c": 0.18471,
    "h": 279.8
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#3F31AB
secondary
#BAC275
accent
#DF49CE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3F31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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