#3821BB#3821BB

#3821BB is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.5% C 0.220 H 276.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#3821BB
RGBrgb(56, 33, 187)
HSLhsl(249, 70%, 43%)
HSVhsv(249, 82%, 73%)
CMYKcmyk(70.1%, 82.4%, 0%, 26.7%)
CIE-LABlab(28.16, 54.38, -75.54)
CIE-LCHlch(28.16, 93.07, 305.75°)
OKLaboklab(40.51% 0.0265 -0.2183)
OKLCHoklch(40.51% 0.22 276.9)
XYZxyz(11.1415, 5.5153, 47.4815)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3821BB #A4BB21
analogous
#2157BB #3821BB #8521BB
triadic
#3821BB #BB3821 #21BB38
tetradic
#3821BB #BB2157 #A4BB21 #21BB85
square
#3821BB #BB2157 #A4BB21 #21BB85
split-complementary
#3821BB #BB8521 #57BB21
monochromatic
#190F53 #281887 #3821BB #543DDD #8271E6

Accessibility & contrast

On white

9.98
#3821BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#3821BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3821BB
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3821BB#FFFFFF#000000##FFFFFF
##3821BB1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BF
Deuteranopia (green-blind)
#003CB8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3821bb;
/* rgb */ color: rgb(56, 33, 187);
/* oklch */ color: oklch(40.5% 0.220 276.9);
Tailwind
colors: {
  custom: {
    50: '#8362d1',
    500: '#3821bb',
    950: '#000000',
  },
}
SCSS
$custom: #3821bb;
$custom-light: #8362d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3821bb",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 248.961,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40507,
    "c": 0.21986,
    "h": 276.9
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#3821BB
secondary
#BECC6B
accent
#ED3BD2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #3821BB

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

Preview Lab → · Contrast checker → · Palette generator →

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