#3A2FBA#3A2FBA

#3A2FBA is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.2% C 0.206 H 276.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#3A2FBA
RGBrgb(58, 47, 186)
HSLhsl(245, 60%, 46%)
HSVhsv(245, 75%, 73%)
CMYKcmyk(68.8%, 74.7%, 0%, 27.1%)
CIE-LABlab(30.58, 47.37, -70.92)
CIE-LCHlch(30.58, 85.29, 303.74°)
OKLaboklab(42.21% 0.023 -0.205)
OKLCHoklch(42.21% 0.206 276.4)
XYZxyz(11.6215, 6.4767, 47.0825)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FBA #AFBA2F
analogous
#2F69BA #3A2FBA #7F2FBA
triadic
#3A2FBA #BA3A2F #2FBA3A
tetradic
#3A2FBA #BA2F69 #AFBA2F #2FBA7F
square
#3A2FBA #BA2F69 #AFBA2F #2FBA7F
split-complementary
#3A2FBA #BA7F2F #69BA2F
monochromatic
#1C1658 #2B2389 #3A2FBA #5D53D3 #8B84E0

Accessibility & contrast

On white

9.15
#3A2FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3A2FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FBA
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FBA#FFFFFF#000000##FFFFFF
##3A2FBA1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0042B8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a2fba;
/* rgb */ color: rgb(58, 47, 186);
/* oklch */ color: oklch(42.2% 0.206 276.4);
Tailwind
colors: {
  custom: {
    50: '#826ad0',
    500: '#3a2fba',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fba;
$custom-light: #826ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fba",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 244.748,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4221,
    "c": 0.20625,
    "h": 276.4
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#3A2FBA
secondary
#C3C97C
accent
#E345D6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3A2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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