#3828AB#3828AB

#3828AB is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.6% C 0.195 H 278.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#3828AB
RGBrgb(56, 40, 171)
HSLhsl(247, 62%, 41%)
HSVhsv(247, 77%, 67%)
CMYKcmyk(67.3%, 76.6%, 0%, 32.9%)
CIE-LABlab(27.57, 46.17, -66.96)
CIE-LCHlch(27.57, 81.33, 304.59°)
OKLaboklab(39.58% 0.0276 -0.1934)
OKLCHoklch(39.58% 0.195 278.1)
XYZxyz(9.7380, 5.2978, 39.0296)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3828AB #9BAB28
analogous
#285AAB #3828AB #7A28AB
triadic
#3828AB #AB3828 #28AB38
tetradic
#3828AB #AB285A #9BAB28 #28AB7A
square
#3828AB #AB285A #9BAB28 #28AB7A
split-complementary
#3828AB #AB7A28 #5AAB28
monochromatic
#181148 #281C79 #3828AB #503ED2 #7D70DE

Accessibility & contrast

On white

10.20
#3828AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3828AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3828AB
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3828AB#FFFFFF#000000##FFFFFF
##3828AB1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3828ab;
/* rgb */ color: rgb(56, 40, 171);
/* oklch */ color: oklch(39.6% 0.195 278.1);
Tailwind
colors: {
  custom: {
    50: '#7f65c5',
    500: '#3828ab',
    950: '#000000',
  },
}
SCSS
$custom: #3828ab;
$custom-light: #7f65c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3828ab",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 247.328,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39582,
    "c": 0.19537,
    "h": 278.1
  },
  "luminance": 0.05299
}

Semantic roles & 50–950 ramp

primary
#3828AB
secondary
#B9C46A
accent
#E543D1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3828AB

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

Preview Lab → · Contrast checker → · Palette generator →

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