#3F31AA#3F31AA

#3F31AA is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.3% C 0.183 H 279.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#3F31AA
RGBrgb(63, 49, 170)
HSLhsl(247, 55%, 43%)
HSVhsv(247, 71%, 67%)
CMYKcmyk(62.9%, 71.2%, 0%, 33.3%)
CIE-LABlab(29.80, 41.75, -62.66)
CIE-LCHlch(29.80, 75.29, 303.67°)
OKLaboklab(41.28% 0.0316 -0.1807)
OKLCHoklch(41.28% 0.183 279.9)
XYZxyz(10.4016, 6.1549, 38.6623)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31AA #9CAA31
analogous
#315FAA #3F31AA #7B31AA
triadic
#3F31AA #AA3F31 #31AA3F
tetradic
#3F31AA #AA315F #9CAA31 #31AA7B
square
#3F31AA #AA315F #9CAA31 #31AA7B
split-complementary
#3F31AA #AA7B31 #5FAA31
monochromatic
#1C164B #2D237A #3F31AA #5B4DCC #877CD9

Accessibility & contrast

On white

9.41
#3F31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3F31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31AA
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31AA#FFFFFF#000000##FFFFFF
##3F31AA1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3f31aa;
/* rgb */ color: rgb(63, 49, 170);
/* oklch */ color: oklch(41.3% 0.183 279.9);
Tailwind
colors: {
  custom: {
    50: '#816bc4',
    500: '#3f31aa',
    950: '#000000',
  },
}
SCSS
$custom: #3f31aa;
$custom-light: #816bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31aa",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 246.942,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41278,
    "c": 0.18346,
    "h": 279.9
  },
  "luminance": 0.06156
}

Semantic roles & 50–950 ramp

primary
#3F31AA
secondary
#B9C275
accent
#DF49CD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3F31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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