#3A2A99#3A2A99

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

Color values

HEX#3A2A99
RGBrgb(58, 42, 153)
HSLhsl(249, 57%, 38%)
HSVhsv(249, 73%, 60%)
CMYKcmyk(62.1%, 72.5%, 0%, 40%)
CIE-LABlab(26.32, 39.61, -58.09)
CIE-LCHlch(26.32, 70.31, 304.29°)
OKLaboklab(38.2% 0.0331 -0.1675)
OKLCHoklch(38.2% 0.171 281.2)
XYZxyz(8.3208, 4.8548, 30.6294)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A99 #89992A
analogous
#2A5199 #3A2A99 #712A99
triadic
#3A2A99 #993A2A #2A993A
tetradic
#3A2A99 #992A51 #89992A #2A9971
square
#3A2A99 #992A51 #89992A #2A9971
split-complementary
#3A2A99 #99712A #51992A
monochromatic
#161039 #281D69 #3A2A99 #4D38C8 #7868D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A2A99#FFFFFF#000000##FFFFFF
##3A2A991.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)
#00429C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a2a99;
/* rgb */ color: rgb(58, 42, 153);
/* oklch */ color: oklch(38.2% 0.171 281.2);
Tailwind
colors: {
  custom: {
    50: '#7c65b8',
    500: '#3a2a99',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a99;
$custom-light: #7c65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a99",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 248.649,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38196,
    "c": 0.1707,
    "h": 281.2
  },
  "luminance": 0.04855
}

Semantic roles & 50–950 ramp

primary
#3A2A99
secondary
#AFBC63
accent
#E048CA
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3A2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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