#3E31BA#3E31BA

#3E31BA is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.8% C 0.203 H 277.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#3E31BA
RGBrgb(62, 49, 186)
HSLhsl(246, 58%, 46%)
HSVhsv(246, 74%, 73%)
CMYKcmyk(66.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(31.27, 46.72, -69.79)
CIE-LCHlch(31.27, 83.98, 303.80°)
OKLaboklab(42.77% 0.0271 -0.2016)
OKLCHoklch(42.77% 0.203 277.7)
XYZxyz(11.9450, 6.7649, 47.1211)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31BA #ADBA31
analogous
#3168BA #3E31BA #8231BA
triadic
#3E31BA #BA3E31 #31BA3E
tetradic
#3E31BA #BA3168 #ADBA31 #31BA82
square
#3E31BA #BA3168 #ADBA31 #31BA82
split-complementary
#3E31BA #BA8231 #68BA31
monochromatic
#1E1759 #2E248A #3E31BA #6256D2 #8F86DF

Accessibility & contrast

On white

8.92
#3E31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3E31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31BA
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31BA#FFFFFF#000000##FFFFFF
##3E31BA1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3e31ba;
/* rgb */ color: rgb(62, 49, 186);
/* oklch */ color: oklch(42.8% 0.203 277.7);
Tailwind
colors: {
  custom: {
    50: '#846bd0',
    500: '#3e31ba',
    950: '#000000',
  },
}
SCSS
$custom: #3e31ba;
$custom-light: #846bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31ba",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 245.693,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42768,
    "c": 0.20338,
    "h": 277.7
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#3E31BA
secondary
#C2C97E
accent
#E246D3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3E31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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