#3E31BB#3E31BB

#3E31BB is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.9% C 0.205 H 277.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#3E31BB
RGBrgb(62, 49, 187)
HSLhsl(246, 58%, 46%)
HSVhsv(246, 74%, 73%)
CMYKcmyk(66.8%, 73.8%, 0%, 26.7%)
CIE-LABlab(31.36, 47.03, -70.22)
CIE-LCHlch(31.36, 84.51, 303.82°)
OKLaboklab(42.87% 0.0269 -0.2028)
OKLCHoklch(42.87% 0.205 277.6)
XYZxyz(12.0517, 6.8076, 47.6830)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31BB #AEBB31
analogous
#3169BB #3E31BB #8331BB
triadic
#3E31BB #BB3E31 #31BB3E
tetradic
#3E31BB #BB3169 #AEBB31 #31BB83
square
#3E31BB #BB3169 #AEBB31 #31BB83
split-complementary
#3E31BB #BB8331 #69BB31
monochromatic
#1E185A #2E248B #3E31BB #6256D3 #8F87E0

Accessibility & contrast

On white

8.89
#3E31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3E31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31BB
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31BB#FFFFFF#000000##FFFFFF
##3E31BB1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e31bb;
/* rgb */ color: rgb(62, 49, 187);
/* oklch */ color: oklch(42.9% 0.205 277.6);
Tailwind
colors: {
  custom: {
    50: '#846bd1',
    500: '#3e31bb',
    950: '#000000',
  },
}
SCSS
$custom: #3e31bb;
$custom-light: #846bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31bb",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 245.652,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42868,
    "c": 0.20459,
    "h": 277.6
  },
  "luminance": 0.06809
}

Semantic roles & 50–950 ramp

primary
#3E31BB
secondary
#C2C97F
accent
#E246D3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3E31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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