#3A2BAB#3A2BAB

#3A2BAB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.192 H 278.6°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#3A2BAB
RGBrgb(58, 43, 171)
HSLhsl(247, 60%, 42%)
HSVhsv(247, 75%, 67%)
CMYKcmyk(66.1%, 74.9%, 0%, 32.9%)
CIE-LABlab(28.29, 44.79, -65.76)
CIE-LCHlch(28.29, 79.56, 304.26°)
OKLaboklab(40.13% 0.0286 -0.1899)
OKLCHoklch(40.13% 0.192 278.6)
XYZxyz(9.9571, 5.5667, 39.0699)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2BAB #9CAB2B
analogous
#2B5CAB #3A2BAB #7A2BAB
triadic
#3A2BAB #AB3A2B #2BAB3A
tetradic
#3A2BAB #AB2B5C #9CAB2B #2BAB7A
square
#3A2BAB #AB2B5C #9CAB2B #2BAB7A
split-complementary
#3A2BAB #AB7A2B #5CAB2B
monochromatic
#191249 #291F7A #3A2BAB #5443D0 #8074DC

Accessibility & contrast

On white

9.94
#3A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3A2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2BAB
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2BAB#FFFFFF#000000##FFFFFF
##3A2BAB1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a2bab;
/* rgb */ color: rgb(58, 43, 171);
/* oklch */ color: oklch(40.1% 0.192 278.6);
Tailwind
colors: {
  custom: {
    50: '#8067c5',
    500: '#3a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #3a2bab;
$custom-light: #8067c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2bab",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 247.031,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40134,
    "c": 0.19202,
    "h": 278.6
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#3A2BAB
secondary
#BAC46E
accent
#E345D0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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