#3A2C83#3A2C83

#3A2C83 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.139 H 284.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#3A2C83
RGBrgb(58, 44, 131)
HSLhsl(250, 50%, 34%)
HSVhsv(250, 66%, 51%)
CMYKcmyk(55.7%, 66.4%, 0%, 48.6%)
CIE-LABlab(24.76, 31.27, -46.99)
CIE-LCHlch(24.76, 56.44, 303.64°)
OKLaboklab(36.46% 0.0348 -0.1349)
OKLCHoklch(36.46% 0.139 284.5)
XYZxyz(6.7411, 4.3392, 21.9507)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2C83 #75832C
analogous
#2C4A83 #3A2C83 #662C83
triadic
#3A2C83 #833A2C #2C833A
tetradic
#3A2C83 #832C4A #75832C #2C8366
square
#3A2C83 #832C4A #75832C #2C8366
split-complementary
#3A2C83 #83662C #4A832C
monochromatic
#110D27 #261D55 #3A2C83 #4E3BB1 #7160CA

Accessibility & contrast

On white

11.24
#3A2C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A2C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2C83
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2C83#FFFFFF#000000##FFFFFF
##3A2C831.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#1A4153
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2c83;
/* rgb */ color: rgb(58, 44, 131);
/* oklch */ color: oklch(36.5% 0.139 284.5);
Tailwind
colors: {
  custom: {
    50: '#7866a8',
    500: '#3a2c83',
    950: '#000000',
  },
}
SCSS
$custom: #3a2c83;
$custom-light: #7866a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2c83",
  "rgb": {
    "r": 58,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 249.655,
    "s": 49.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36465,
    "c": 0.13935,
    "h": 284.5
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#3A2C83
secondary
#A2B05B
accent
#D94FC3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #3A2C83

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

Preview Lab → · Contrast checker → · Palette generator →

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