#3E31B8#3E31B8

#3E31B8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.201 H 277.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#3E31B8
RGBrgb(62, 49, 184)
HSLhsl(246, 58%, 46%)
HSVhsv(246, 73%, 72%)
CMYKcmyk(66.3%, 73.4%, 0%, 27.8%)
CIE-LABlab(31.07, 46.08, -68.93)
CIE-LCHlch(31.07, 82.92, 303.77°)
OKLaboklab(42.57% 0.0275 -0.1991)
OKLCHoklch(42.57% 0.201 277.9)
XYZxyz(11.7339, 6.6805, 46.0092)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31B8 #ABB831
analogous
#3167B8 #3E31B8 #8131B8
triadic
#3E31B8 #B83E31 #31B83E
tetradic
#3E31B8 #B83167 #ABB831 #31B881
square
#3E31B8 #B83167 #ABB831 #31B881
split-complementary
#3E31B8 #B88131 #67B831
monochromatic
#1D1757 #2E2488 #3E31B8 #6155D2 #8E85DE

Accessibility & contrast

On white

8.99
#3E31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E31B8
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31B8#FFFFFF#000000##FFFFFF
##3E31B81.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3e31b8;
/* rgb */ color: rgb(62, 49, 184);
/* oklch */ color: oklch(42.6% 0.201 277.9);
Tailwind
colors: {
  custom: {
    50: '#846bcf',
    500: '#3e31b8',
    950: '#000000',
  },
}
SCSS
$custom: #3e31b8;
$custom-light: #846bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31b8",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 245.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.20096,
    "h": 277.9
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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