#3E31B9#3E31B9

#3E31B9 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.7% C 0.202 H 277.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#3E31B9
RGBrgb(62, 49, 185)
HSLhsl(246, 58%, 46%)
HSVhsv(246, 74%, 73%)
CMYKcmyk(66.5%, 73.5%, 0%, 27.5%)
CIE-LABlab(31.17, 46.40, -69.36)
CIE-LCHlch(31.17, 83.45, 303.78°)
OKLaboklab(42.67% 0.0273 -0.2003)
OKLCHoklch(42.67% 0.202 277.8)
XYZxyz(11.8390, 6.7225, 46.5632)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31B9 #ACB931
analogous
#3168B9 #3E31B9 #8231B9
triadic
#3E31B9 #B93E31 #31B93E
tetradic
#3E31B9 #B93168 #ACB931 #31B982
square
#3E31B9 #B93168 #ACB931 #31B982
split-complementary
#3E31B9 #B98231 #68B931
monochromatic
#1E1758 #2E2489 #3E31B9 #6155D2 #8E86DF

Accessibility & contrast

On white

8.96
#3E31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3E31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31B9
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31B9#FFFFFF#000000##FFFFFF
##3E31B91.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3e31b9;
/* rgb */ color: rgb(62, 49, 185);
/* oklch */ color: oklch(42.7% 0.202 277.8);
Tailwind
colors: {
  custom: {
    50: '#846bcf',
    500: '#3e31b9',
    950: '#000000',
  },
}
SCSS
$custom: #3e31b9;
$custom-light: #846bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31b9",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 245.735,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42668,
    "c": 0.20217,
    "h": 277.8
  },
  "luminance": 0.06724
}

Semantic roles & 50–950 ramp

primary
#3E31B9
secondary
#C1C87D
accent
#E146D3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3E31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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