#3F31B3#3F31B3

#3F31B3 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.1% C 0.195 H 278.8°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#3F31B3
RGBrgb(63, 49, 179)
HSLhsl(246, 57%, 45%)
HSVhsv(246, 73%, 70%)
CMYKcmyk(64.8%, 72.6%, 0%, 29.8%)
CIE-LABlab(30.66, 44.62, -66.63)
CIE-LCHlch(30.66, 80.19, 303.81°)
OKLaboklab(42.15% 0.0299 -0.1923)
OKLCHoklch(42.15% 0.195 278.8)
XYZxyz(11.2823, 6.5071, 43.3005)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31B3 #A5B331
analogous
#3164B3 #3F31B3 #8031B3
triadic
#3F31B3 #B33F31 #31B33F
tetradic
#3F31B3 #B33164 #A5B331 #31B380
square
#3F31B3 #B33164 #A5B331 #31B380
split-complementary
#3F31B3 #B38031 #64B331
monochromatic
#1D1753 #2E2483 #3F31B3 #5F52D0 #8C82DD

Accessibility & contrast

On white

9.12
#3F31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3F31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31B3
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31B3#FFFFFF#000000##FFFFFF
##3F31B31.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3f31b3;
/* rgb */ color: rgb(63, 49, 179);
/* oklch */ color: oklch(42.1% 0.195 278.8);
Tailwind
colors: {
  custom: {
    50: '#836bcb',
    500: '#3f31b3',
    950: '#000000',
  },
}
SCSS
$custom: #3f31b3;
$custom-light: #836bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31b3",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 246.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42149,
    "c": 0.19463,
    "h": 278.8
  },
  "luminance": 0.06508
}

Semantic roles & 50–950 ramp

primary
#3F31B3
secondary
#BEC67A
accent
#E048D0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3F31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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