#3F31B2#3F31B2

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

Color values

HEX#3F31B2
RGBrgb(63, 49, 178)
HSLhsl(247, 57%, 45%)
HSVhsv(247, 72%, 70%)
CMYKcmyk(64.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(30.56, 44.30, -66.19)
CIE-LCHlch(30.56, 79.65, 303.79°)
OKLaboklab(42.05% 0.0301 -0.191)
OKLCHoklch(42.05% 0.193 278.9)
XYZxyz(11.1815, 6.4668, 42.7698)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31B2 #A4B231
analogous
#3163B2 #3F31B2 #8031B2
triadic
#3F31B2 #B23F31 #31B23F
tetradic
#3F31B2 #B23163 #A4B231 #31B280
square
#3F31B2 #B23163 #A4B231 #31B280
split-complementary
#3F31B2 #B28031 #63B231
monochromatic
#1D1752 #2E2482 #3F31B2 #5F51CF #8B81DC

Accessibility & contrast

On white

9.16
#3F31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3F31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31B2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31B2#FFFFFF#000000##FFFFFF
##3F31B21.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3f31b2;
/* rgb */ color: rgb(63, 49, 178);
/* oklch */ color: oklch(42.1% 0.193 278.9);
Tailwind
colors: {
  custom: {
    50: '#836bca',
    500: '#3f31b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f31b2;
$custom-light: #836bca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31b2",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 246.512,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42051,
    "c": 0.1934,
    "h": 278.9
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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