#3A2E9E#3A2E9E

#3A2E9E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.173 H 279.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#3A2E9E
RGBrgb(58, 46, 158)
HSLhsl(246, 55%, 40%)
HSVhsv(246, 71%, 62%)
CMYKcmyk(63.3%, 70.9%, 0%, 38%)
CIE-LABlab(27.63, 38.91, -58.98)
CIE-LCHlch(27.63, 70.66, 303.41°)
OKLaboklab(39.28% 0.0291 -0.1701)
OKLCHoklch(39.28% 0.173 279.7)
XYZxyz(8.8915, 5.3215, 32.8997)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2E9E #929E2E
analogous
#2E5A9E #3A2E9E #722E9E
triadic
#3A2E9E #9E3A2E #2E9E3A
tetradic
#3A2E9E #9E2E5A #929E2E #2E9E72
square
#3A2E9E #9E2E5A #929E2E #2E9E72
split-complementary
#3A2E9E #9E722E #5A9E2E
monochromatic
#17123F #29206F #3A2E9E #5041C8 #7C71D6

Accessibility & contrast

On white

10.17
#3A2E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3A2E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2E9E
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2E9E#FFFFFF#000000##FFFFFF
##3A2E9E1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2e9e;
/* rgb */ color: rgb(58, 46, 158);
/* oklch */ color: oklch(39.3% 0.173 279.7);
Tailwind
colors: {
  custom: {
    50: '#7d68bc',
    500: '#3a2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #3a2e9e;
$custom-light: #7d68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2e9e",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 246.429,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.3928,
    "c": 0.17256,
    "h": 279.7
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#3A2E9E
secondary
#B4BD6B
accent
#DE4ACE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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