#3831BF#3831BF

#3831BF is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.9% C 0.211 H 275.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#3831BF
RGBrgb(56, 49, 191)
HSLhsl(243, 59%, 47%)
HSVhsv(243, 74%, 75%)
CMYKcmyk(70.7%, 74.3%, 0%, 25.1%)
CIE-LABlab(31.34, 47.68, -72.63)
CIE-LCHlch(31.34, 86.88, 303.28°)
OKLaboklab(42.86% 0.0183 -0.21)
OKLCHoklch(42.86% 0.211 275)
XYZxyz(12.1301, 6.7978, 49.9530)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831BF #B8BF31
analogous
#3171BF #3831BF #7F31BF
triadic
#3831BF #BF3831 #31BF38
tetradic
#3831BF #BF3171 #B8BF31 #31BF7F
square
#3831BF #BF3171 #B8BF31 #31BF7F
split-complementary
#3831BF #BF7F31 #71BF31
monochromatic
#1B185E #2A258E #3831BF #5F59D4 #8E8AE1

Accessibility & contrast

On white

8.90
#3831BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3831BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3831BF#FFFFFF#000000##FFFFFF
##3831BF1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C3
Deuteranopia (green-blind)
#0043BC
Tritanopia (blue-blind)
#005A76
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3831bf;
/* rgb */ color: rgb(56, 49, 191);
/* oklch */ color: oklch(42.9% 0.211 275.0);
Tailwind
colors: {
  custom: {
    50: '#826bd4',
    500: '#3831bf',
    950: '#000000',
  },
}
SCSS
$custom: #3831bf;
$custom-light: #826bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#3831bf",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 242.958,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.21081,
    "h": 275
  },
  "luminance": 0.06799
}

Semantic roles & 50–950 ramp

primary
#3831BF
secondary
#C7CB81
accent
#E245DB
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3831BF

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

Preview Lab → · Contrast checker → · Palette generator →

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