#3A2FAC#3A2FAC

#3A2FAC is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.189 H 277.8°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#3A2FAC
RGBrgb(58, 47, 172)
HSLhsl(245, 57%, 43%)
HSVhsv(245, 73%, 67%)
CMYKcmyk(66.3%, 72.7%, 0%, 32.5%)
CIE-LABlab(29.18, 42.88, -64.89)
CIE-LCHlch(29.18, 77.78, 303.46°)
OKLaboklab(40.8% 0.0258 -0.1874)
OKLCHoklch(40.8% 0.189 277.8)
XYZxyz(10.2054, 5.9103, 39.6247)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FAC #A1AC2F
analogous
#2F62AC #3A2FAC #782FAC
triadic
#3A2FAC #AC3A2F #2FAC3A
tetradic
#3A2FAC #AC2F62 #A1AC2F #2FAC78
square
#3A2FAC #AC2F62 #A1AC2F #2FAC78
split-complementary
#3A2FAC #AC782F #62AC2F
monochromatic
#1A154C #2A227C #3A2FAC #564BCE #837BDB

Accessibility & contrast

On white

9.62
#3A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3A2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FAC
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FAC#FFFFFF#000000##FFFFFF
##3A2FAC1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0040AA
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3a2fac;
/* rgb */ color: rgb(58, 47, 172);
/* oklch */ color: oklch(40.8% 0.189 277.8);
Tailwind
colors: {
  custom: {
    50: '#7f69c6',
    500: '#3a2fac',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fac;
$custom-light: #7f69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fac",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 245.28,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40797,
    "c": 0.18913,
    "h": 277.8
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#3A2FAC
secondary
#BCC374
accent
#E047D3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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