#3A2BA7#3A2BA7

#3A2BA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.187 H 279.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#3A2BA7
RGBrgb(58, 43, 167)
HSLhsl(247, 59%, 41%)
HSVhsv(247, 74%, 65%)
CMYKcmyk(65.3%, 74.3%, 0%, 34.5%)
CIE-LABlab(27.89, 43.52, -64.01)
CIE-LCHlch(27.89, 77.40, 304.21°)
OKLaboklab(39.73% 0.0295 -0.1848)
OKLCHoklch(39.73% 0.187 279.1)
XYZxyz(9.5816, 5.4165, 37.0923)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2BA7 #98A72B
analogous
#2B5AA7 #3A2BA7 #782BA7
triadic
#3A2BA7 #A73A2B #2BA73A
tetradic
#3A2BA7 #A72B5A #98A72B #2BA778
square
#3A2BA7 #A72B5A #98A72B #2BA778
split-complementary
#3A2BA7 #A7782B #5AA72B
monochromatic
#181246 #291E76 #3A2BA7 #5241CE #7E72DB

Accessibility & contrast

On white

10.08
#3A2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3A2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2BA7
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2BA7#FFFFFF#000000##FFFFFF
##3A2BA71.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a2ba7;
/* rgb */ color: rgb(58, 43, 167);
/* oklch */ color: oklch(39.7% 0.187 279.1);
Tailwind
colors: {
  custom: {
    50: '#7f67c2',
    500: '#3a2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #3a2ba7;
$custom-light: #7f67c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2ba7",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 247.258,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39729,
    "c": 0.18711,
    "h": 279.1
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#3A2BA7
secondary
#B8C26C
accent
#E246CF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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