#3822A8#3822A8

#3822A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.5% C 0.197 H 279.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3822A8
RGBrgb(56, 34, 168)
HSLhsl(250, 66%, 40%)
HSVhsv(250, 80%, 66%)
CMYKcmyk(66.7%, 79.8%, 0%, 34.1%)
CIE-LABlab(26.19, 48.29, -67.42)
CIE-LCHlch(26.19, 82.93, 305.61°)
OKLaboklab(38.53% 0.0316 -0.1947)
OKLCHoklch(38.53% 0.197 279.2)
XYZxyz(9.2685, 4.8112, 37.4784)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3822A8 #92A822
analogous
#224FA8 #3822A8 #7B22A8
triadic
#3822A8 #A83822 #22A838
tetradic
#3822A8 #A8224F #92A822 #22A87B
square
#3822A8 #A8224F #92A822 #22A87B
split-complementary
#3822A8 #A87B22 #4FA822
monochromatic
#160D42 #271875 #3822A8 #4D32D5 #7965E0

Accessibility & contrast

On white

10.70
#3822A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3822A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3822A8
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3822A8#FFFFFF#000000##FFFFFF
##3822A81.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3822a8;
/* rgb */ color: rgb(56, 34, 168);
/* oklch */ color: oklch(38.5% 0.197 279.2);
Tailwind
colors: {
  custom: {
    50: '#7f61c3',
    500: '#3822a8',
    950: '#000000',
  },
}
SCSS
$custom: #3822a8;
$custom-light: #7f61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3822a8",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 249.851,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38525,
    "c": 0.19725,
    "h": 279.2
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#3822A8
secondary
#B5C561
accent
#E93FCD
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3822A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3822A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva