#3E31AA#3E31AA

#3E31AA is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.184 H 279.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#3E31AA
RGBrgb(62, 49, 170)
HSLhsl(246, 55%, 43%)
HSVhsv(246, 71%, 67%)
CMYKcmyk(63.5%, 71.2%, 0%, 33.3%)
CIE-LABlab(29.72, 41.61, -62.80)
CIE-LCHlch(29.72, 75.33, 303.53°)
OKLaboklab(41.2% 0.0302 -0.1811)
OKLCHoklch(41.2% 0.184 279.5)
XYZxyz(10.3383, 6.1222, 38.6593)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31AA #9DAA31
analogous
#3161AA #3E31AA #7A31AA
triadic
#3E31AA #AA3E31 #31AA3E
tetradic
#3E31AA #AA3161 #9DAA31 #31AA7A
square
#3E31AA #AA3161 #9DAA31 #31AA7A
split-complementary
#3E31AA #AA7A31 #61AA31
monochromatic
#1B164B #2D237A #3E31AA #5A4DCC #867CD9

Accessibility & contrast

On white

9.44
#3E31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3E31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31AA
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31AA#FFFFFF#000000##FFFFFF
##3E31AA1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3e31aa;
/* rgb */ color: rgb(62, 49, 170);
/* oklch */ color: oklch(41.2% 0.184 279.5);
Tailwind
colors: {
  custom: {
    50: '#816bc4',
    500: '#3e31aa',
    950: '#000000',
  },
}
SCSS
$custom: #3e31aa;
$custom-light: #816bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31aa",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 246.446,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41199,
    "c": 0.18365,
    "h": 279.5
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#3E31AA
secondary
#BAC275
accent
#DF49CF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3E31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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