#3828A2#3828A2

#3828A2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.184 H 279.3°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#3828A2
RGBrgb(56, 40, 162)
HSLhsl(248, 60%, 40%)
HSVhsv(248, 75%, 64%)
CMYKcmyk(65.4%, 75.3%, 0%, 36.5%)
CIE-LABlab(26.64, 43.34, -63.05)
CIE-LCHlch(26.64, 76.51, 304.50°)
OKLaboklab(38.65% 0.0297 -0.182)
OKLCHoklch(38.65% 0.184 279.3)
XYZxyz(8.9092, 4.9663, 34.6645)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3828A2 #92A228
analogous
#2855A2 #3828A2 #7528A2
triadic
#3828A2 #A23828 #28A238
tetradic
#3828A2 #A22855 #92A228 #28A275
square
#3828A2 #A22855 #92A228 #28A275
split-complementary
#3828A2 #A27528 #55A228
monochromatic
#161040 #271C71 #3828A2 #4D39CE #796ADA

Accessibility & contrast

On white

10.53
#3828A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3828A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3828A2
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3828A2#FFFFFF#000000##FFFFFF
##3828A21.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3828a2;
/* rgb */ color: rgb(56, 40, 162);
/* oklch */ color: oklch(38.7% 0.184 279.3);
Tailwind
colors: {
  custom: {
    50: '#7d64bf',
    500: '#3828a2',
    950: '#000000',
  },
}
SCSS
$custom: #3828a2;
$custom-light: #7d64bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3828a2",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 247.869,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38651,
    "c": 0.18443,
    "h": 279.3
  },
  "luminance": 0.04967
}

Semantic roles & 50–950 ramp

primary
#3828A2
secondary
#B5C165
accent
#E444CF
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3828A2

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

Preview Lab → · Contrast checker → · Palette generator →

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