#3827AB#3827AB

#3827AB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.5% C 0.196 H 278.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#3827AB
RGBrgb(56, 39, 171)
HSLhsl(248, 63%, 41%)
HSVhsv(248, 77%, 67%)
CMYKcmyk(67.3%, 77.2%, 0%, 32.9%)
CIE-LABlab(27.38, 46.70, -67.26)
CIE-LCHlch(27.38, 81.88, 304.77°)
OKLaboklab(39.45% 0.0281 -0.1943)
OKLCHoklch(39.45% 0.196 278.2)
XYZxyz(9.7047, 5.2312, 39.0185)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3827AB #9AAB27
analogous
#2758AB #3827AB #7A27AB
triadic
#3827AB #AB3827 #27AB38
tetradic
#3827AB #AB2758 #9AAB27 #27AB7A
square
#3827AB #AB2758 #9AAB27 #27AB7A
split-complementary
#3827AB #AB7A27 #58AB27
monochromatic
#171047 #281C79 #3827AB #503DD3 #7D6EDE

Accessibility & contrast

On white

10.26
#3827AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3827AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3827AB
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3827AB#FFFFFF#000000##FFFFFF
##3827AB1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3827ab;
/* rgb */ color: rgb(56, 39, 171);
/* oklch */ color: oklch(39.5% 0.196 278.2);
Tailwind
colors: {
  custom: {
    50: '#7f64c5',
    500: '#3827ab',
    950: '#000000',
  },
}
SCSS
$custom: #3827ab;
$custom-light: #7f64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3827ab",
  "rgb": {
    "r": 56,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 247.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39454,
    "c": 0.19631,
    "h": 278.2
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#3827AB
secondary
#B9C569
accent
#E642D1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3827AB

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

Preview Lab → · Contrast checker → · Palette generator →

#3827AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva