#3A2AA2#3A2AA2

#3A2AA2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.182 H 279.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#3A2AA2
RGBrgb(58, 42, 162)
HSLhsl(248, 59%, 40%)
HSVhsv(248, 74%, 64%)
CMYKcmyk(64.2%, 74.1%, 0%, 36.5%)
CIE-LABlab(27.20, 42.49, -62.13)
CIE-LCHlch(27.20, 75.27, 304.37°)
OKLaboklab(39.09% 0.0312 -0.1793)
OKLCHoklch(39.09% 0.182 279.9)
XYZxyz(9.0924, 5.1634, 34.6929)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2AA2 #92A22A
analogous
#2A56A2 #3A2AA2 #762AA2
triadic
#3A2AA2 #A23A2A #2AA23A
tetradic
#3A2AA2 #A22A56 #92A22A #2AA276
square
#3A2AA2 #A22A56 #92A22A #2AA276
split-complementary
#3A2AA2 #A2762A #56A22A
monochromatic
#171141 #291D71 #3A2AA2 #503DCD #7C6DD9

Accessibility & contrast

On white

10.33
#3A2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2AA2
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2AA2#FFFFFF#000000##FFFFFF
##3A2AA21.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3a2aa2;
/* rgb */ color: rgb(58, 42, 162);
/* oklch */ color: oklch(39.1% 0.182 279.9);
Tailwind
colors: {
  custom: {
    50: '#7e66bf',
    500: '#3a2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #3a2aa2;
$custom-light: #7e66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2aa2",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 248,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.39087,
    "c": 0.18198,
    "h": 279.9
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#3A2AA2
secondary
#B4C068
accent
#E246CD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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