#3821BD#3821BD

#3821BD is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.7% C 0.222 H 276.7°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#3821BD
RGBrgb(56, 33, 189)
HSLhsl(249, 70%, 44%)
HSVhsv(249, 83%, 74%)
CMYKcmyk(70.4%, 82.5%, 0%, 25.9%)
CIE-LABlab(28.38, 54.96, -76.34)
CIE-LCHlch(28.38, 94.07, 305.75°)
OKLaboklab(40.73% 0.0259 -0.2206)
OKLCHoklch(40.73% 0.222 276.7)
XYZxyz(11.3571, 5.6015, 48.6169)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3821BD #A6BD21
analogous
#2158BD #3821BD #8621BD
triadic
#3821BD #BD3821 #21BD38
tetradic
#3821BD #BD2158 #A6BD21 #21BD86
square
#3821BD #BD2158 #A6BD21 #21BD86
split-complementary
#3821BD #BD8621 #58BD21
monochromatic
#190F55 #291889 #3821BD #553EDD #8372E6

Accessibility & contrast

On white

9.90
#3821BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3821BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3821BD
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3821BD#FFFFFF#000000##FFFFFF
##3821BD1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049C1
Deuteranopia (green-blind)
#003CBA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3821bd;
/* rgb */ color: rgb(56, 33, 189);
/* oklch */ color: oklch(40.7% 0.222 276.7);
Tailwind
colors: {
  custom: {
    50: '#8362d2',
    500: '#3821bd',
    950: '#000000',
  },
}
SCSS
$custom: #3821bd;
$custom-light: #8362d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3821bd",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 248.846,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40731,
    "c": 0.22211,
    "h": 276.7
  },
  "luminance": 0.05603
}

Semantic roles & 50–950 ramp

primary
#3821BD
secondary
#BFCD6D
accent
#ED3BD3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0514
muted
#7D7A83

Preview Lab

Preview with #3821BD

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

Preview Lab → · Contrast checker → · Palette generator →

#3821BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva