#3E31B7#3E31B7

#3E31B7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.5% C 0.200 H 278.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#3E31B7
RGBrgb(62, 49, 183)
HSLhsl(246, 58%, 45%)
HSVhsv(246, 73%, 72%)
CMYKcmyk(66.1%, 73.2%, 0%, 28.2%)
CIE-LABlab(30.97, 45.77, -68.50)
CIE-LCHlch(30.97, 82.38, 303.75°)
OKLaboklab(42.47% 0.0277 -0.1978)
OKLCHoklch(42.47% 0.2 278)
XYZxyz(11.6294, 6.6387, 45.4591)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E31B7 #AAB731
analogous
#3167B7 #3E31B7 #8131B7
triadic
#3E31B7 #B73E31 #31B73E
tetradic
#3E31B7 #B73167 #AAB731 #31B781
square
#3E31B7 #B73167 #AAB731 #31B781
split-complementary
#3E31B7 #B78131 #67B731
monochromatic
#1D1756 #2E2487 #3E31B7 #6054D1 #8D84DE

Accessibility & contrast

On white

9.02
#3E31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3E31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E31B7
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E31B7#FFFFFF#000000##FFFFFF
##3E31B71.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3e31b7;
/* rgb */ color: rgb(62, 49, 183);
/* oklch */ color: oklch(42.5% 0.200 278.0);
Tailwind
colors: {
  custom: {
    50: '#836bce',
    500: '#3e31b7',
    950: '#000000',
  },
}
SCSS
$custom: #3e31b7;
$custom-light: #836bce;
$custom-dark: #000000;
JSON
{
  "hex": "#3e31b7",
  "rgb": {
    "r": 62,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 245.821,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42469,
    "c": 0.19974,
    "h": 278
  },
  "luminance": 0.0664
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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