#3A2DAB#3A2DAB

#3A2DAB is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.190 H 278.3°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#3A2DAB
RGBrgb(58, 45, 171)
HSLhsl(246, 58%, 42%)
HSVhsv(246, 74%, 67%)
CMYKcmyk(66.1%, 73.7%, 0%, 32.9%)
CIE-LABlab(28.68, 43.69, -65.11)
CIE-LCHlch(28.68, 78.41, 303.86°)
OKLaboklab(40.41% 0.0273 -0.188)
OKLCHoklch(40.41% 0.19 278.3)
XYZxyz(10.0316, 5.7158, 39.0948)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2DAB #9EAB2D
analogous
#2D5FAB #3A2DAB #792DAB
triadic
#3A2DAB #AB3A2D #2DAB3A
tetradic
#3A2DAB #AB2D5F #9EAB2D #2DAB79
square
#3A2DAB #AB2D5F #9EAB2D #2DAB79
split-complementary
#3A2DAB #AB792D #5FAB2D
monochromatic
#19144A #2A207B #3A2DAB #5547CE #8177DB

Accessibility & contrast

On white

9.80
#3A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3A2DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2DAB
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2DAB#FFFFFF#000000##FFFFFF
##3A2DAB1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a2dab;
/* rgb */ color: rgb(58, 45, 171);
/* oklch */ color: oklch(40.4% 0.190 278.3);
Tailwind
colors: {
  custom: {
    50: '#7f68c5',
    500: '#3a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #3a2dab;
$custom-light: #7f68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2dab",
  "rgb": {
    "r": 58,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 246.19,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40411,
    "c": 0.18998,
    "h": 278.3
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#3A2DAB
secondary
#BBC371
accent
#E246D2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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