#3831BB#3831BB

#3831BB is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.206 H 275.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#3831BB
RGBrgb(56, 49, 187)
HSLhsl(243, 58%, 46%)
HSVhsv(243, 74%, 73%)
CMYKcmyk(70.1%, 73.8%, 0%, 26.7%)
CIE-LABlab(30.94, 46.39, -70.94)
CIE-LCHlch(30.94, 84.76, 303.18°)
OKLaboklab(42.45% 0.0191 -0.2051)
OKLCHoklch(42.45% 0.206 275.3)
XYZxyz(11.6959, 6.6241, 47.6663)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831BB #B4BB31
analogous
#316FBB #3831BB #7D31BB
triadic
#3831BB #BB3831 #31BB38
tetradic
#3831BB #BB316F #B4BB31 #31BB7D
square
#3831BB #BB316F #B4BB31 #31BB7D
split-complementary
#3831BB #BB7D31 #6FBB31
monochromatic
#1B185A #29248B #3831BB #5D56D3 #8B87E0

Accessibility & contrast

On white

9.03
#3831BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3831BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3831BB#FFFFFF#000000##FFFFFF
##3831BB1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBF
Deuteranopia (green-blind)
#0042B9
Tritanopia (blue-blind)
#005973
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3831bb;
/* rgb */ color: rgb(56, 49, 187);
/* oklch */ color: oklch(42.5% 0.206 275.3);
Tailwind
colors: {
  custom: {
    50: '#826bd1',
    500: '#3831bb',
    950: '#000000',
  },
}
SCSS
$custom: #3831bb;
$custom-light: #826bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3831bb",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 243.043,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42453,
    "c": 0.20597,
    "h": 275.3
  },
  "luminance": 0.06625
}

Semantic roles & 50–950 ramp

primary
#3831BB
secondary
#C5C97F
accent
#E246DA
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3831BB

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

Preview Lab → · Contrast checker → · Palette generator →

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