#3F31B4#3F31B4

#3F31B4 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.2% C 0.196 H 278.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#3F31B4
RGBrgb(63, 49, 180)
HSLhsl(246, 57%, 45%)
HSVhsv(246, 73%, 71%)
CMYKcmyk(65%, 72.8%, 0%, 29.4%)
CIE-LABlab(30.75, 44.94, -67.07)
CIE-LCHlch(30.75, 80.73, 303.82°)
OKLaboklab(42.25% 0.0297 -0.1936)
OKLCHoklch(42.25% 0.196 278.7)
XYZxyz(11.3838, 6.5477, 43.8351)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F31B4 #A6B431
analogous
#3165B4 #3F31B4 #8031B4
triadic
#3F31B4 #B43F31 #31B43F
tetradic
#3F31B4 #B43165 #A6B431 #31B480
square
#3F31B4 #B43165 #A6B431 #31B480
split-complementary
#3F31B4 #B48031 #65B431
monochromatic
#1D1754 #2E2484 #3F31B4 #6052D0 #8C82DD

Accessibility & contrast

On white

9.09
#3F31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3F31B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F31B4
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F31B4#FFFFFF#000000##FFFFFF
##3F31B41.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3f31b4;
/* rgb */ color: rgb(63, 49, 180);
/* oklch */ color: oklch(42.2% 0.196 278.7);
Tailwind
colors: {
  custom: {
    50: '#836bcc',
    500: '#3f31b4',
    950: '#000000',
  },
}
SCSS
$custom: #3f31b4;
$custom-light: #836bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f31b4",
  "rgb": {
    "r": 63,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 246.412,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42247,
    "c": 0.19586,
    "h": 278.7
  },
  "luminance": 0.06549
}

Semantic roles & 50–950 ramp

primary
#3F31B4
secondary
#BEC67B
accent
#E047D0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3F31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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