#3A2C8A#3A2C8A

#3A2C8A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.149 H 283.2°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3A2C8A
RGBrgb(58, 44, 138)
HSLhsl(249, 52%, 36%)
HSVhsv(249, 68%, 54%)
CMYKcmyk(58%, 68.1%, 0%, 45.9%)
CIE-LABlab(25.37, 33.56, -50.38)
CIE-LCHlch(25.37, 60.53, 303.67°)
OKLaboklab(37.09% 0.0339 -0.1449)
OKLCHoklch(37.09% 0.149 283.2)
XYZxyz(7.2316, 4.5354, 24.5342)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2C8A #7C8A2C
analogous
#2C4D8A #3A2C8A #692C8A
triadic
#3A2C8A #8A3A2C #2C8A3A
tetradic
#3A2C8A #8A2C4D #7C8A2C #2C8A69
square
#3A2C8A #8A2C4D #7C8A2C #2C8A69
split-complementary
#3A2C8A #8A692C #4D8A2C
monochromatic
#130E2D #261D5C #3A2C8A #4E3BB8 #7363CD

Accessibility & contrast

On white

11.01
#3A2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2C8A
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2C8A#FFFFFF#000000##FFFFFF
##3A2C8A1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#114457
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a2c8a;
/* rgb */ color: rgb(58, 44, 138);
/* oklch */ color: oklch(37.1% 0.149 283.2);
Tailwind
colors: {
  custom: {
    50: '#7966ad',
    500: '#3a2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a2c8a;
$custom-light: #7966ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2c8a",
  "rgb": {
    "r": 58,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 248.936,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37092,
    "c": 0.1488,
    "h": 283.2
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#3A2C8A
secondary
#A7B45E
accent
#DB4DC6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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