#3A2BA3#3A2BA3

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

Color values

HEX#3A2BA3
RGBrgb(58, 43, 163)
HSLhsl(248, 58%, 40%)
HSVhsv(248, 74%, 64%)
CMYKcmyk(64.4%, 73.6%, 0%, 36.1%)
CIE-LABlab(27.49, 42.25, -62.24)
CIE-LCHlch(27.49, 75.23, 304.17°)
OKLaboklab(39.33% 0.0303 -0.1796)
OKLCHoklch(39.33% 0.182 279.6)
XYZxyz(9.2176, 5.2709, 35.1749)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2BA3 #94A32B
analogous
#2B58A3 #3A2BA3 #762BA3
triadic
#3A2BA3 #A33A2B #2BA33A
tetradic
#3A2BA3 #A32B58 #94A32B #2BA376
square
#3A2BA3 #A32B58 #94A32B #2BA376
split-complementary
#3A2BA3 #A3762B #58A32B
monochromatic
#181142 #291E73 #3A2BA3 #513FCC #7D6FD9

Accessibility & contrast

On white

10.22
#3A2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3A2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2BA3
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2BA3#FFFFFF#000000##FFFFFF
##3A2BA31.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a2ba3;
/* rgb */ color: rgb(58, 43, 163);
/* oklch */ color: oklch(39.3% 0.182 279.6);
Tailwind
colors: {
  custom: {
    50: '#7e66bf',
    500: '#3a2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ba3;
$custom-light: #7e66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ba3",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 247.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39328,
    "c": 0.18216,
    "h": 279.6
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#3A2BA3
secondary
#B5C06A
accent
#E146CE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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