#3831AF#3831AF

#3831AF is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.191 H 276.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#3831AF
RGBrgb(56, 49, 175)
HSLhsl(243, 56%, 44%)
HSVhsv(243, 72%, 69%)
CMYKcmyk(68%, 72%, 0%, 31.4%)
CIE-LABlab(29.74, 42.48, -65.77)
CIE-LCHlch(29.74, 78.30, 302.86°)
OKLaboklab(41.25% 0.0213 -0.19)
OKLCHoklch(41.25% 0.191 276.4)
XYZxyz(10.4645, 6.1316, 41.1812)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831AF #A8AF31
analogous
#3169AF #3831AF #7731AF
triadic
#3831AF #AF3831 #31AF38
tetradic
#3831AF #AF3169 #A8AF31 #31AF77
square
#3831AF #AF3169 #A8AF31 #31AF77
split-complementary
#3831AF #AF7731 #69AF31
monochromatic
#19164F #29247F #3831AF #564FCE #847FDB

Accessibility & contrast

On white

9.43
#3831AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3831AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3831AF#FFFFFF#000000##FFFFFF
##3831AF1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0040AD
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3831af;
/* rgb */ color: rgb(56, 49, 175);
/* oklch */ color: oklch(41.2% 0.191 276.4);
Tailwind
colors: {
  custom: {
    50: '#7f6bc8',
    500: '#3831af',
    950: '#000000',
  },
}
SCSS
$custom: #3831af;
$custom-light: #7f6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3831af",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 243.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41245,
    "c": 0.1912,
    "h": 276.4
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#3831AF
secondary
#C0C478
accent
#E048D7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3831AF

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

Preview Lab → · Contrast checker → · Palette generator →

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