#3821B2#3821B2

#3821B2 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.5% C 0.210 H 278.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#3821B2
RGBrgb(56, 33, 178)
HSLhsl(250, 69%, 41%)
HSVhsv(250, 81%, 70%)
CMYKcmyk(68.5%, 81.5%, 0%, 30.2%)
CIE-LABlab(27.14, 51.74, -71.87)
CIE-LCHlch(27.14, 88.55, 305.75°)
OKLaboklab(39.51% 0.0292 -0.2076)
OKLCHoklch(39.51% 0.21 278)
XYZxyz(10.2080, 5.1419, 42.5654)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3821B2 #9BB221
analogous
#2153B2 #3821B2 #8121B2
triadic
#3821B2 #B23821 #21B238
tetradic
#3821B2 #B22153 #9BB221 #21B281
square
#3821B2 #B22153 #9BB221 #21B281
split-complementary
#3821B2 #B28121 #53B221
monochromatic
#180E4B #28177E #3821B2 #5036DA #7D6AE3

Accessibility & contrast

On white

10.35
#3821B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3821B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3821B2
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3821B2#FFFFFF#000000##FFFFFF
##3821B21.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3821b2;
/* rgb */ color: rgb(56, 33, 178);
/* oklch */ color: oklch(39.5% 0.210 278.0);
Tailwind
colors: {
  custom: {
    50: '#8161ca',
    500: '#3821b2',
    950: '#000000',
  },
}
SCSS
$custom: #3821b2;
$custom-light: #8161ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3821b2",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 249.517,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39506,
    "c": 0.20965,
    "h": 278
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#3821B2
secondary
#B9C966
accent
#EC3CD0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3821B2

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

Preview Lab → · Contrast checker → · Palette generator →

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