#3831B3#3831B3

#3831B3 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.6% C 0.196 H 276.0°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#3831B3
RGBrgb(56, 49, 179)
HSLhsl(243, 57%, 45%)
HSVhsv(243, 73%, 70%)
CMYKcmyk(68.7%, 72.6%, 0%, 29.8%)
CIE-LABlab(30.14, 43.79, -67.51)
CIE-LCHlch(30.14, 80.47, 302.97°)
OKLaboklab(41.64% 0.0206 -0.1951)
OKLCHoklch(41.64% 0.196 276)
XYZxyz(10.8632, 6.2911, 43.2809)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831B3 #ACB331
analogous
#316BB3 #3831B3 #7931B3
triadic
#3831B3 #B33831 #31B338
tetradic
#3831B3 #B3316B #ACB331 #31B379
square
#3831B3 #B3316B #ACB331 #31B379
split-complementary
#3831B3 #B37931 #6BB331
monochromatic
#1A1753 #292483 #3831B3 #5852D0 #8782DD

Accessibility & contrast

On white

9.30
#3831B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3831B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3831B3#FFFFFF#000000##FFFFFF
##3831B31.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0041B1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3831b3;
/* rgb */ color: rgb(56, 49, 179);
/* oklch */ color: oklch(41.6% 0.196 276.0);
Tailwind
colors: {
  custom: {
    50: '#806bcb',
    500: '#3831b3',
    950: '#000000',
  },
}
SCSS
$custom: #3831b3;
$custom-light: #806bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3831b3",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 243.231,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41644,
    "c": 0.19618,
    "h": 276
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

primary
#3831B3
secondary
#C2C67A
accent
#E048D8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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