#3A2FB6#3A2FB6

#3A2FB6 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.201 H 276.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#3A2FB6
RGBrgb(58, 47, 182)
HSLhsl(245, 59%, 45%)
HSVhsv(245, 74%, 71%)
CMYKcmyk(68.1%, 74.2%, 0%, 28.6%)
CIE-LABlab(30.18, 46.10, -69.22)
CIE-LCHlch(30.18, 83.16, 303.66°)
OKLaboklab(41.8% 0.0238 -0.2)
OKLCHoklch(41.8% 0.201 276.8)
XYZxyz(11.2022, 6.3090, 44.8743)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FB6 #ABB62F
analogous
#2F67B6 #3A2FB6 #7E2FB6
triadic
#3A2FB6 #B63A2F #2FB63A
tetradic
#3A2FB6 #B62F67 #ABB62F #2FB67E
square
#3A2FB6 #B62F67 #ABB62F #2FB67E
split-complementary
#3A2FB6 #B67E2F #67B62F
monochromatic
#1B1655 #2A2285 #3A2FB6 #5B50D2 #8981DE

Accessibility & contrast

On white

9.28
#3A2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3A2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FB6
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FB6#FFFFFF#000000##FFFFFF
##3A2FB61.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0041B4
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a2fb6;
/* rgb */ color: rgb(58, 47, 182);
/* oklch */ color: oklch(41.8% 0.201 276.8);
Tailwind
colors: {
  custom: {
    50: '#826acd',
    500: '#3a2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fb6;
$custom-light: #826acd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fb6",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 244.889,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41802,
    "c": 0.20141,
    "h": 276.8
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#3A2FB6
secondary
#C1C779
accent
#E246D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3A2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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