#3A2C8B#3A2C8B

#3A2C8B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.150 H 283.0°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3A2C8B
RGBrgb(58, 44, 139)
HSLhsl(249, 52%, 36%)
HSVhsv(249, 68%, 55%)
CMYKcmyk(58.3%, 68.3%, 0%, 45.5%)
CIE-LABlab(25.46, 33.89, -50.86)
CIE-LCHlch(25.46, 61.11, 303.68°)
OKLaboklab(37.18% 0.0338 -0.1463)
OKLCHoklch(37.18% 0.15 283)
XYZxyz(7.3044, 4.5645, 24.9172)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2C8B #7D8B2C
analogous
#2C4D8B #3A2C8B #692C8B
triadic
#3A2C8B #8B3A2C #2C8B3A
tetradic
#3A2C8B #8B2C4D #7D8B2C #2C8B69
square
#3A2C8B #8B2C4D #7D8B2C #2C8B69
split-complementary
#3A2C8B #8B692C #4D8B2C
monochromatic
#130F2E #271D5D #3A2C8B #4D3BB9 #7364CE

Accessibility & contrast

On white

10.98
#3A2C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2C8B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2C8B#FFFFFF#000000##FFFFFF
##3A2C8B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#104457
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a2c8b;
/* rgb */ color: rgb(58, 44, 139);
/* oklch */ color: oklch(37.2% 0.150 283.0);
Tailwind
colors: {
  custom: {
    50: '#7966ae',
    500: '#3a2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #3a2c8b;
$custom-light: #7966ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2c8b",
  "rgb": {
    "r": 58,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 248.842,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37183,
    "c": 0.15013,
    "h": 283
  },
  "luminance": 0.04565
}

Semantic roles & 50–950 ramp

primary
#3A2C8B
secondary
#A8B45F
accent
#DB4CC6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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