#3A2FB2#3A2FB2

#3A2FB2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.4% C 0.197 H 277.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#3A2FB2
RGBrgb(58, 47, 178)
HSLhsl(245, 58%, 44%)
HSVhsv(245, 74%, 70%)
CMYKcmyk(67.4%, 73.6%, 0%, 30.2%)
CIE-LABlab(29.78, 44.82, -67.50)
CIE-LCHlch(29.78, 81.02, 303.58°)
OKLaboklab(41.4% 0.0246 -0.195)
OKLCHoklch(41.4% 0.197 277.2)
XYZxyz(10.7947, 6.1460, 42.7283)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FB2 #A7B22F
analogous
#2F66B2 #3A2FB2 #7C2FB2
triadic
#3A2FB2 #B23A2F #2FB23A
tetradic
#3A2FB2 #B22F66 #A7B22F #2FB27C
square
#3A2FB2 #B22F66 #A7B22F #2FB27C
split-complementary
#3A2FB2 #B27C2F #66B22F
monochromatic
#1A1551 #2A2282 #3A2FB2 #594ED0 #867EDD

Accessibility & contrast

On white

9.42
#3A2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3A2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FB2
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FB2#FFFFFF#000000##FFFFFF
##3A2FB21.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a2fb2;
/* rgb */ color: rgb(58, 47, 178);
/* oklch */ color: oklch(41.4% 0.197 277.2);
Tailwind
colors: {
  custom: {
    50: '#816aca',
    500: '#3a2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fb2;
$custom-light: #816aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fb2",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 245.038,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41397,
    "c": 0.19654,
    "h": 277.2
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#3A2FB2
secondary
#BFC677
accent
#E146D4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3A2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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