#3E31B3#3E31B3

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

Color values

HEX#3E31B3
RGBrgb(62, 49, 179)
HSLhsl(246, 57%, 45%)
HSVhsv(246, 73%, 70%)
CMYKcmyk(65.4%, 72.6%, 0%, 29.8%)
CIE-LABlab(30.58, 44.50, -66.76)
CIE-LCHlch(30.58, 80.23, 303.68°)
OKLaboklab(42.07% 0.0285 -0.1927)
OKLCHoklch(42.07% 0.195 278.4)
XYZxyz(11.2190, 6.4745, 43.2976)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31B3 #A6B331
analogous
#3165B3 #3E31B3 #7F31B3
triadic
#3E31B3 #B33E31 #31B33E
tetradic
#3E31B3 #B33165 #A6B331 #31B37F
square
#3E31B3 #B33165 #A6B331 #31B37F
split-complementary
#3E31B3 #B37F31 #65B331
monochromatic
#1D1753 #2D2483 #3E31B3 #5E52D0 #8B82DD

Accessibility & contrast

On white

9.15
#3E31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E31B3
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31B3#FFFFFF#000000##FFFFFF
##3E31B31.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.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: #3e31b3;
/* rgb */ color: rgb(62, 49, 179);
/* oklch */ color: oklch(42.1% 0.195 278.4);
Tailwind
colors: {
  custom: {
    50: '#826bcb',
    500: '#3e31b3',
    950: '#000000',
  },
}
SCSS
$custom: #3e31b3;
$custom-light: #826bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31b3",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 246,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42074,
    "c": 0.19484,
    "h": 278.4
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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