#3828A6#3828A6

#3828A6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.1% C 0.189 H 278.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#3828A6
RGBrgb(56, 40, 166)
HSLhsl(248, 61%, 40%)
HSVhsv(248, 76%, 65%)
CMYKcmyk(66.3%, 75.9%, 0%, 34.9%)
CIE-LABlab(27.05, 44.61, -64.80)
CIE-LCHlch(27.05, 78.67, 304.54°)
OKLaboklab(39.06% 0.0288 -0.1871)
OKLCHoklch(39.06% 0.189 278.7)
XYZxyz(9.2704, 5.1107, 36.5669)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3828A6 #96A628
analogous
#2857A6 #3828A6 #7728A6
triadic
#3828A6 #A63828 #28A638
tetradic
#3828A6 #A62857 #96A628 #28A677
square
#3828A6 #A62857 #96A628 #28A677
split-complementary
#3828A6 #A67728 #57A628
monochromatic
#171043 #271C75 #3828A6 #4E3BD0 #7B6DDC

Accessibility & contrast

On white

10.38
#3828A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3828A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3828A6
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3828A6#FFFFFF#000000##FFFFFF
##3828A61.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3828a6;
/* rgb */ color: rgb(56, 40, 166);
/* oklch */ color: oklch(39.1% 0.189 278.7);
Tailwind
colors: {
  custom: {
    50: '#7e65c2',
    500: '#3828a6',
    950: '#000000',
  },
}
SCSS
$custom: #3828a6;
$custom-light: #7e65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3828a6",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 247.619,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39062,
    "c": 0.18932,
    "h": 278.7
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#3828A6
secondary
#B7C267
accent
#E444D0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3828A6

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

Preview Lab → · Contrast checker → · Palette generator →

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