#3A2DB2#3A2DB2

#3A2DB2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.1% C 0.199 H 277.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#3A2DB2
RGBrgb(58, 45, 178)
HSLhsl(246, 60%, 44%)
HSVhsv(246, 75%, 70%)
CMYKcmyk(67.4%, 74.7%, 0%, 30.2%)
CIE-LABlab(29.39, 45.92, -68.14)
CIE-LCHlch(29.39, 82.17, 303.98°)
OKLaboklab(41.12% 0.0258 -0.1968)
OKLCHoklch(41.12% 0.199 277.5)
XYZxyz(10.7166, 5.9897, 42.7022)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2DB2 #A5B22D
analogous
#2D62B2 #3A2DB2 #7C2DB2
triadic
#3A2DB2 #B23A2D #2DB23A
tetradic
#3A2DB2 #B22D62 #A5B22D #2DB27C
square
#3A2DB2 #B22D62 #A5B22D #2DB27C
split-complementary
#3A2DB2 #B27C2D #62B22D
monochromatic
#1A1450 #2A2181 #3A2DB2 #584BD1 #857CDE

Accessibility & contrast

On white

9.55
#3A2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3A2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2DB2
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2DB2#FFFFFF#000000##FFFFFF
##3A2DB21.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0040B0
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a2db2;
/* rgb */ color: rgb(58, 45, 178);
/* oklch */ color: oklch(41.1% 0.199 277.5);
Tailwind
colors: {
  custom: {
    50: '#8168ca',
    500: '#3a2db2',
    950: '#000000',
  },
}
SCSS
$custom: #3a2db2;
$custom-light: #8168ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2db2",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 245.865,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4112,
    "c": 0.19854,
    "h": 277.5
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#3A2DB2
secondary
#BEC675
accent
#E345D3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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