#3A2D96#3A2D96

#3A2D96 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.163 H 281.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#3A2D96
RGBrgb(58, 45, 150)
HSLhsl(247, 54%, 38%)
HSVhsv(247, 70%, 59%)
CMYKcmyk(61.3%, 70%, 0%, 41.2%)
CIE-LABlab(26.67, 36.89, -55.66)
CIE-LCHlch(26.67, 66.78, 303.53°)
OKLaboklab(38.36% 0.0313 -0.1604)
OKLCHoklch(38.36% 0.163 281)
XYZxyz(8.1866, 4.9777, 29.3776)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2D96 #89962D
analogous
#2D5496 #3A2D96 #6E2D96
triadic
#3A2D96 #963A2D #2D963A
tetradic
#3A2D96 #962D54 #89962D #2D966E
square
#3A2D96 #962D54 #89962D #2D966E
split-complementary
#3A2D96 #966E2D #54962D
monochromatic
#161138 #281F67 #3A2D96 #4D3CC4 #786BD3

Accessibility & contrast

On white

10.52
#3A2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3A2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2D96
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2D96#FFFFFF#000000##FFFFFF
##3A2D961.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a2d96;
/* rgb */ color: rgb(58, 45, 150);
/* oklch */ color: oklch(38.4% 0.163 281.0);
Tailwind
colors: {
  custom: {
    50: '#7b67b6',
    500: '#3a2d96',
    950: '#000000',
  },
}
SCSS
$custom: #3a2d96;
$custom-light: #7b67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2d96",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 247.429,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38364,
    "c": 0.1634,
    "h": 281
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#3A2D96
secondary
#AFB965
accent
#DD4BCB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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