#3821B4#3821B4

#3821B4 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.7% C 0.212 H 277.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#3821B4
RGBrgb(56, 33, 180)
HSLhsl(249, 69%, 42%)
HSVhsv(249, 82%, 71%)
CMYKcmyk(68.9%, 81.7%, 0%, 29.4%)
CIE-LABlab(27.36, 52.33, -72.69)
CIE-LCHlch(27.36, 89.57, 305.75°)
OKLaboklab(39.73% 0.0286 -0.21)
OKLCHoklch(39.73% 0.212 277.7)
XYZxyz(10.4103, 5.2228, 43.6307)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3821B4 #9DB421
analogous
#2154B4 #3821B4 #8221B4
triadic
#3821B4 #B43821 #21B438
tetradic
#3821B4 #B42154 #9DB421 #21B482
square
#3821B4 #B42154 #9DB421 #21B482
split-complementary
#3821B4 #B48221 #54B421
monochromatic
#180E4D #281880 #3821B4 #5138DA #7E6BE4

Accessibility & contrast

On white

10.27
#3821B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3821B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3821B4
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3821B4#FFFFFF#000000##FFFFFF
##3821B41.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3821b4;
/* rgb */ color: rgb(56, 33, 180);
/* oklch */ color: oklch(39.7% 0.212 277.7);
Tailwind
colors: {
  custom: {
    50: '#8162cc',
    500: '#3821b4',
    950: '#000000',
  },
}
SCSS
$custom: #3821b4;
$custom-light: #8162cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3821b4",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 249.388,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39727,
    "c": 0.21193,
    "h": 277.7
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#3821B4
secondary
#BACA67
accent
#EC3CD0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3821B4

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

Preview Lab → · Contrast checker → · Palette generator →

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