#3A2FB1#3A2FB1

#3A2FB1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.3% C 0.195 H 277.3°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#3A2FB1
RGBrgb(58, 47, 177)
HSLhsl(245, 58%, 44%)
HSVhsv(245, 73%, 69%)
CMYKcmyk(67.2%, 73.4%, 0%, 30.6%)
CIE-LABlab(29.68, 44.50, -67.06)
CIE-LCHlch(29.68, 80.48, 303.56°)
OKLaboklab(41.3% 0.0248 -0.1937)
OKLCHoklch(41.3% 0.195 277.3)
XYZxyz(10.6947, 6.1060, 42.2014)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FB1 #A6B12F
analogous
#2F65B1 #3A2FB1 #7B2FB1
triadic
#3A2FB1 #B13A2F #2FB13A
tetradic
#3A2FB1 #B12F65 #A6B12F #2FB17B
square
#3A2FB1 #B12F65 #A6B12F #2FB17B
split-complementary
#3A2FB1 #B17B2F #65B12F
monochromatic
#1A1550 #2A2281 #3A2FB1 #584DD0 #867EDD

Accessibility & contrast

On white

9.45
#3A2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3A2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FB1
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FB1#FFFFFF#000000##FFFFFF
##3A2FB11.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0040AF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a2fb1;
/* rgb */ color: rgb(58, 47, 177);
/* oklch */ color: oklch(41.3% 0.195 277.3);
Tailwind
colors: {
  custom: {
    50: '#806aca',
    500: '#3a2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fb1;
$custom-light: #806aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fb1",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 245.077,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41296,
    "c": 0.1953,
    "h": 277.3
  },
  "luminance": 0.06107
}

Semantic roles & 50–950 ramp

primary
#3A2FB1
secondary
#BFC576
accent
#E147D4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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