#3822A6#3822A6

#3822A6 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.195 H 279.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3822A6
RGBrgb(56, 34, 166)
HSLhsl(250, 66%, 39%)
HSVhsv(250, 80%, 65%)
CMYKcmyk(66.3%, 79.5%, 0%, 34.9%)
CIE-LABlab(25.97, 47.68, -66.57)
CIE-LCHlch(25.97, 81.89, 305.61°)
OKLaboklab(38.31% 0.0322 -0.1922)
OKLCHoklch(38.31% 0.195 279.5)
XYZxyz(9.0837, 4.7372, 36.5047)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3822A6 #90A622
analogous
#224EA6 #3822A6 #7A22A6
triadic
#3822A6 #A63822 #22A638
tetradic
#3822A6 #A6224E #90A622 #22A67A
square
#3822A6 #A6224E #90A622 #22A67A
split-complementary
#3822A6 #A67A22 #4EA622
monochromatic
#160D40 #271873 #3822A6 #4C30D5 #7863DF

Accessibility & contrast

On white

10.78
#3822A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3822A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3822A6
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3822A6#FFFFFF#000000##FFFFFF
##3822A61.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3822a6;
/* rgb */ color: rgb(56, 34, 166);
/* oklch */ color: oklch(38.3% 0.195 279.5);
Tailwind
colors: {
  custom: {
    50: '#7e61c2',
    500: '#3822a6',
    950: '#000000',
  },
}
SCSS
$custom: #3822a6;
$custom-light: #7e61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3822a6",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 250,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.1949,
    "h": 279.5
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#3822A6
secondary
#B4C45F
accent
#E93FCD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #3822A6

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

Preview Lab → · Contrast checker → · Palette generator →

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