#3A22A8#3A22A8

#3A22A8 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.197 H 280.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#3A22A8
RGBrgb(58, 34, 168)
HSLhsl(251, 66%, 40%)
HSVhsv(251, 80%, 66%)
CMYKcmyk(65.5%, 79.8%, 0%, 34.1%)
CIE-LABlab(26.36, 48.49, -67.13)
CIE-LCHlch(26.36, 82.81, 305.84°)
OKLaboklab(38.69% 0.0346 -0.1938)
OKLCHoklch(38.69% 0.197 280.1)
XYZxyz(9.3826, 4.8700, 37.4838)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22A8 #90A822
analogous
#224DA8 #3A22A8 #7D22A8
triadic
#3A22A8 #A83A22 #22A83A
tetradic
#3A22A8 #A8224D #90A822 #22A87D
square
#3A22A8 #A8224D #90A822 #22A87D
split-complementary
#3A22A8 #A87D22 #4DA822
monochromatic
#170D42 #281875 #3A22A8 #4F32D5 #7B65E0

Accessibility & contrast

On white

10.64
#3A22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3A22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22A8
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22A8#FFFFFF#000000##FFFFFF
##3A22A81.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a22a8;
/* rgb */ color: rgb(58, 34, 168);
/* oklch */ color: oklch(38.7% 0.197 280.1);
Tailwind
colors: {
  custom: {
    50: '#8062c3',
    500: '#3a22a8',
    950: '#000000',
  },
}
SCSS
$custom: #3a22a8;
$custom-light: #8062c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22a8",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 250.746,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38687,
    "c": 0.19686,
    "h": 280.1
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#3A22A8
secondary
#B3C561
accent
#E93FCB
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A22A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3A22A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva