#3A22AF#3A22AF

#3A22AF is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.4% C 0.205 H 279.1°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#3A22AF
RGBrgb(58, 34, 175)
HSLhsl(250, 67%, 41%)
HSVhsv(250, 81%, 69%)
CMYKcmyk(66.9%, 80.6%, 0%, 31.4%)
CIE-LABlab(27.12, 50.57, -70.08)
CIE-LCHlch(27.12, 86.43, 305.81°)
OKLaboklab(39.44% 0.0325 -0.2024)
OKLCHoklch(39.44% 0.205 279.1)
XYZxyz(10.0523, 5.1379, 41.0111)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22AF #97AF22
analogous
#2250AF #3A22AF #8022AF
triadic
#3A22AF #AF3A22 #22AF3A
tetradic
#3A22AF #AF2250 #97AF22 #22AF80
square
#3A22AF #AF2250 #97AF22 #22AF80
split-complementary
#3A22AF #AF8022 #50AF22
monochromatic
#180E49 #29187C #3A22AF #5236D8 #7E69E2

Accessibility & contrast

On white

10.36
#3A22AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3A22AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22AF
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22AF#FFFFFF#000000##FFFFFF
##3A22AF1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B3
Deuteranopia (green-blind)
#003AAD
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a22af;
/* rgb */ color: rgb(58, 34, 175);
/* oklch */ color: oklch(39.4% 0.205 279.1);
Tailwind
colors: {
  custom: {
    50: '#8162c8',
    500: '#3a22af',
    950: '#000000',
  },
}
SCSS
$custom: #3a22af;
$custom-light: #8162c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22af",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 250.213,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39441,
    "c": 0.20498,
    "h": 279.1
  },
  "luminance": 0.05139
}

Semantic roles & 50–950 ramp

primary
#3A22AF
secondary
#B7C865
accent
#EA3DCD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3A22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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