#3E31B2#3E31B2

#3E31B2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 42.0% C 0.194 H 278.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#3E31B2
RGBrgb(62, 49, 178)
HSLhsl(246, 57%, 45%)
HSVhsv(246, 72%, 70%)
CMYKcmyk(65.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(30.48, 44.18, -66.33)
CIE-LCHlch(30.48, 79.69, 303.67°)
OKLaboklab(41.98% 0.0287 -0.1915)
OKLCHoklch(41.98% 0.194 278.5)
XYZxyz(11.1182, 6.4342, 42.7669)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31B2 #A5B231
analogous
#3164B2 #3E31B2 #7F31B2
triadic
#3E31B2 #B23E31 #31B23E
tetradic
#3E31B2 #B23164 #A5B231 #31B27F
square
#3E31B2 #B23164 #A5B231 #31B27F
split-complementary
#3E31B2 #B27F31 #64B231
monochromatic
#1D1752 #2D2482 #3E31B2 #5E51CF #8A81DC

Accessibility & contrast

On white

9.18
#3E31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3E31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31B2
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31B2#FFFFFF#000000##FFFFFF
##3E31B21.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3e31b2;
/* rgb */ color: rgb(62, 49, 178);
/* oklch */ color: oklch(42.0% 0.194 278.5);
Tailwind
colors: {
  custom: {
    50: '#826bca',
    500: '#3e31b2',
    950: '#000000',
  },
}
SCSS
$custom: #3e31b2;
$custom-light: #826bca;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31b2",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 246.047,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41976,
    "c": 0.19361,
    "h": 278.5
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

primary
#3E31B2
secondary
#BEC579
accent
#E048D1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3E31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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