#3831AA#3831AA

#3831AA is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.185 H 276.9°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#3831AA
RGBrgb(56, 49, 170)
HSLhsl(243, 55%, 43%)
HSVhsv(243, 71%, 67%)
CMYKcmyk(67.1%, 71.2%, 0%, 33.3%)
CIE-LABlab(29.26, 40.83, -63.57)
CIE-LCHlch(29.26, 75.55, 302.71°)
OKLaboklab(40.75% 0.0222 -0.1836)
OKLCHoklch(40.75% 0.185 276.9)
XYZxyz(9.9825, 5.9388, 38.6427)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831AA #A3AA31
analogous
#3166AA #3831AA #7431AA
triadic
#3831AA #AA3831 #31AA38
tetradic
#3831AA #AA3166 #A3AA31 #31AA74
square
#3831AA #AA3166 #A3AA31 #31AA74
split-complementary
#3831AA #AA7431 #66AA31
monochromatic
#19164B #28237A #3831AA #544DCC #827CD9

Accessibility & contrast

On white

9.60
#3831AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#3831AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3831AA#FFFFFF#000000##FFFFFF
##3831AA1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0040A8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3831aa;
/* rgb */ color: rgb(56, 49, 170);
/* oklch */ color: oklch(40.8% 0.185 276.9);
Tailwind
colors: {
  custom: {
    50: '#7e6ac4',
    500: '#3831aa',
    950: '#000000',
  },
}
SCSS
$custom: #3831aa;
$custom-light: #7e6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#3831aa",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 243.471,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40752,
    "c": 0.18492,
    "h": 276.9
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#3831AA
secondary
#BDC275
accent
#DF49D6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3831AA

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

Preview Lab → · Contrast checker → · Palette generator →

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