#3831AD#3831AD

#3831AD is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.0% C 0.189 H 276.6°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#3831AD
RGBrgb(56, 49, 173)
HSLhsl(243, 56%, 44%)
HSVhsv(243, 72%, 68%)
CMYKcmyk(67.6%, 71.7%, 0%, 32.2%)
CIE-LABlab(29.55, 41.82, -64.89)
CIE-LCHlch(29.55, 77.20, 302.80°)
OKLaboklab(41.05% 0.0217 -0.1874)
OKLCHoklch(41.05% 0.189 276.6)
XYZxyz(10.2696, 6.0536, 40.1543)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831AD #A6AD31
analogous
#3168AD #3831AD #7631AD
triadic
#3831AD #AD3831 #31AD38
tetradic
#3831AD #AD3168 #A6AD31 #31AD76
square
#3831AD #AD3168 #A6AD31 #31AD76
split-complementary
#3831AD #AD7631 #68AD31
monochromatic
#19164E #29237D #3831AD #554ECD #837EDA

Accessibility & contrast

On white

9.50
#3831AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3831AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3831AD
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3831AD#FFFFFF#000000##FFFFFF
##3831AD1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0040AB
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3831ad;
/* rgb */ color: rgb(56, 49, 173);
/* oklch */ color: oklch(41.0% 0.189 276.6);
Tailwind
colors: {
  custom: {
    50: '#7f6bc7',
    500: '#3831ad',
    950: '#000000',
  },
}
SCSS
$custom: #3831ad;
$custom-light: #7f6bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3831ad",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 243.387,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41047,
    "c": 0.1887,
    "h": 276.6
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#3831AD
secondary
#BFC377
accent
#DF49D7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3831AD

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

Preview Lab → · Contrast checker → · Palette generator →

#3831AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva