#3A2B97#3A2B97

#3A2B97 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.167 H 281.3°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#3A2B97
RGBrgb(58, 43, 151)
HSLhsl(248, 56%, 38%)
HSVhsv(248, 72%, 59%)
CMYKcmyk(61.6%, 71.5%, 0%, 40.8%)
CIE-LABlab(26.34, 38.39, -56.83)
CIE-LCHlch(26.34, 68.58, 304.04°)
OKLaboklab(38.15% 0.0327 -0.1638)
OKLCHoklch(38.15% 0.167 281.3)
XYZxyz(8.1930, 4.8611, 29.7787)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2B97 #88972B
analogous
#2B5297 #3A2B97 #702B97
triadic
#3A2B97 #973A2B #2B973A
tetradic
#3A2B97 #972B52 #88972B #2B9770
square
#3A2B97 #972B52 #88972B #2B9770
split-complementary
#3A2B97 #97702B #52972B
monochromatic
#151038 #281D67 #3A2B97 #4C39C7 #7768D4

Accessibility & contrast

On white

10.65
#3A2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3A2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2B97
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2B97#FFFFFF#000000##FFFFFF
##3A2B971.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a2b97;
/* rgb */ color: rgb(58, 43, 151);
/* oklch */ color: oklch(38.2% 0.167 281.3);
Tailwind
colors: {
  custom: {
    50: '#7c66b7',
    500: '#3a2b97',
    950: '#000000',
  },
}
SCSS
$custom: #3a2b97;
$custom-light: #7c66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2b97",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 248.333,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38151,
    "c": 0.16702,
    "h": 281.3
  },
  "luminance": 0.04862
}

Semantic roles & 50–950 ramp

primary
#3A2B97
secondary
#AEBB63
accent
#DF49CA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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