#3A2EAB#3A2EAB

#3A2EAB is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.189 H 278.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#3A2EAB
RGBrgb(58, 46, 171)
HSLhsl(246, 58%, 43%)
HSVhsv(246, 73%, 67%)
CMYKcmyk(66.1%, 73.1%, 0%, 32.9%)
CIE-LABlab(28.88, 43.13, -64.78)
CIE-LCHlch(28.88, 77.82, 303.65°)
OKLaboklab(40.55% 0.0267 -0.187)
OKLCHoklch(40.55% 0.189 278.1)
XYZxyz(10.0702, 5.7930, 39.1077)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EAB #9FAB2E
analogous
#2E60AB #3A2EAB #792EAB
triadic
#3A2EAB #AB3A2E #2EAB3A
tetradic
#3A2EAB #AB2E60 #9FAB2E #2EAB79
square
#3A2EAB #AB2E60 #9FAB2E #2EAB79
split-complementary
#3A2EAB #AB792E #60AB2E
monochromatic
#19144B #2A217B #3A2EAB #5548CE #8279DB

Accessibility & contrast

On white

9.73
#3A2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3A2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EAB
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EAB#FFFFFF#000000##FFFFFF
##3A2EAB1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a2eab;
/* rgb */ color: rgb(58, 46, 171);
/* oklch */ color: oklch(40.6% 0.189 278.1);
Tailwind
colors: {
  custom: {
    50: '#7f69c5',
    500: '#3a2eab',
    950: '#000000',
  },
}
SCSS
$custom: #3a2eab;
$custom-light: #7f69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2eab",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 245.76,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40553,
    "c": 0.18894,
    "h": 278.1
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#3A2EAB
secondary
#BBC372
accent
#E147D2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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