#3831C5#3831C5

#3831C5 is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.5% C 0.218 H 274.5°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#3831C5
RGBrgb(56, 49, 197)
HSLhsl(243, 60%, 48%)
HSVhsv(243, 75%, 77%)
CMYKcmyk(71.6%, 75.1%, 0%, 22.7%)
CIE-LABlab(31.96, 49.59, -75.13)
CIE-LCHlch(31.96, 90.02, 303.43°)
OKLaboklab(43.48% 0.0171 -0.2173)
OKLCHoklch(43.48% 0.218 274.5)
XYZxyz(12.8039, 7.0673, 53.5019)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831C5 #BEC531
analogous
#3174C5 #3831C5 #8231C5
triadic
#3831C5 #C53831 #31C538
tetradic
#3831C5 #C53174 #BEC531 #31C582
square
#3831C5 #C53174 #BEC531 #31C582
split-complementary
#3831C5 #C58231 #74C531
monochromatic
#1C1963 #2A2594 #3831C5 #625DD7 #928EE3

Accessibility & contrast

On white

8.70
#3831C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3831C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3831C5#FFFFFF#000000##FFFFFF
##3831C51.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C9
Deuteranopia (green-blind)
#0044C2
Tritanopia (blue-blind)
#005C79
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3831c5;
/* rgb */ color: rgb(56, 49, 197);
/* oklch */ color: oklch(43.5% 0.218 274.5);
Tailwind
colors: {
  custom: {
    50: '#846cd8',
    500: '#3831c5',
    950: '#000000',
  },
}
SCSS
$custom: #3831c5;
$custom-light: #846cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#3831c5",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 242.838,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.43483,
    "c": 0.21797,
    "h": 274.5
  },
  "luminance": 0.07069
}

Semantic roles & 50–950 ramp

primary
#3831C5
secondary
#CACD85
accent
#E344DC
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3831C5

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

Preview Lab → · Contrast checker → · Palette generator →

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