#3828A4#3828A4

#3828A4 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.9% C 0.187 H 279.0°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#3828A4
RGBrgb(56, 40, 164)
HSLhsl(248, 61%, 40%)
HSVhsv(248, 76%, 64%)
CMYKcmyk(65.9%, 75.6%, 0%, 35.7%)
CIE-LABlab(26.84, 43.97, -63.93)
CIE-LCHlch(26.84, 77.59, 304.52°)
OKLaboklab(38.86% 0.0293 -0.1846)
OKLCHoklch(38.86% 0.187 279)
XYZxyz(9.0884, 5.0379, 35.6082)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3828A4 #94A428
analogous
#2856A4 #3828A4 #7628A4
triadic
#3828A4 #A43828 #28A438
tetradic
#3828A4 #A42856 #94A428 #28A476
square
#3828A4 #A42856 #94A428 #28A476
split-complementary
#3828A4 #A47628 #56A428
monochromatic
#161042 #271C73 #3828A4 #4D3ACF #7A6BDB

Accessibility & contrast

On white

10.46
#3828A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3828A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3828A4
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3828A4#FFFFFF#000000##FFFFFF
##3828A41.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3828a4;
/* rgb */ color: rgb(56, 40, 164);
/* oklch */ color: oklch(38.9% 0.187 279.0);
Tailwind
colors: {
  custom: {
    50: '#7d65c0',
    500: '#3828a4',
    950: '#000000',
  },
}
SCSS
$custom: #3828a4;
$custom-light: #7d65c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3828a4",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 247.742,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.38856,
    "c": 0.18687,
    "h": 279
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#3828A4
secondary
#B6C166
accent
#E444CF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3828A4

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

Preview Lab → · Contrast checker → · Palette generator →

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