#3831AE#3831AE

#3831AE is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.190 H 276.5°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#3831AE
RGBrgb(56, 49, 174)
HSLhsl(243, 56%, 44%)
HSVhsv(243, 72%, 68%)
CMYKcmyk(67.8%, 71.8%, 0%, 31.8%)
CIE-LABlab(29.64, 42.15, -65.33)
CIE-LCHlch(29.64, 77.75, 302.83°)
OKLaboklab(41.15% 0.0215 -0.1887)
OKLCHoklch(41.15% 0.19 276.5)
XYZxyz(10.3667, 6.0925, 40.6658)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831AE #A7AE31
analogous
#3168AE #3831AE #7631AE
triadic
#3831AE #AE3831 #31AE38
tetradic
#3831AE #AE3168 #A7AE31 #31AE76
square
#3831AE #AE3168 #A7AE31 #31AE76
split-complementary
#3831AE #AE7631 #68AE31
monochromatic
#19164E #29247E #3831AE #564FCD #847FDB

Accessibility & contrast

On white

9.47
#3831AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3831AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3831AE
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3831AE#FFFFFF#000000##FFFFFF
##3831AE1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3831ae;
/* rgb */ color: rgb(56, 49, 174);
/* oklch */ color: oklch(41.1% 0.190 276.5);
Tailwind
colors: {
  custom: {
    50: '#7f6bc7',
    500: '#3831ae',
    950: '#000000',
  },
}
SCSS
$custom: #3831ae;
$custom-light: #7f6bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3831ae",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 243.36,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41146,
    "c": 0.18995,
    "h": 276.5
  },
  "luminance": 0.06093
}

Semantic roles & 50–950 ramp

primary
#3831AE
secondary
#BFC477
accent
#DF48D7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3831AE

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

Preview Lab → · Contrast checker → · Palette generator →

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