#3A2AA8#3A2AA8

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

Color values

HEX#3A2AA8
RGBrgb(58, 42, 168)
HSLhsl(248, 60%, 41%)
HSVhsv(248, 75%, 66%)
CMYKcmyk(65.5%, 75%, 0%, 34.1%)
CIE-LABlab(27.80, 44.39, -64.77)
CIE-LCHlch(27.80, 78.52, 304.42°)
OKLaboklab(39.69% 0.0299 -0.187)
OKLCHoklch(39.69% 0.189 279.1)
XYZxyz(9.6385, 5.3818, 37.5691)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2AA8 #98A82A
analogous
#2A59A8 #3A2AA8 #792AA8
triadic
#3A2AA8 #A83A2A #2AA83A
tetradic
#3A2AA8 #A82A59 #98A82A #2AA879
square
#3A2AA8 #A82A59 #98A82A #2AA879
split-complementary
#3A2AA8 #A8792A #59A82A
monochromatic
#181246 #291E77 #3A2AA8 #5240CF #7E71DB

Accessibility & contrast

On white

10.11
#3A2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2AA8
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2AA8#FFFFFF#000000##FFFFFF
##3A2AA81.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a2aa8;
/* rgb */ color: rgb(58, 42, 168);
/* oklch */ color: oklch(39.7% 0.189 279.1);
Tailwind
colors: {
  custom: {
    50: '#7f66c3',
    500: '#3a2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #3a2aa8;
$custom-light: #7f66c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2aa8",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 247.619,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39692,
    "c": 0.18935,
    "h": 279.1
  },
  "luminance": 0.05383
}

Semantic roles & 50–950 ramp

primary
#3A2AA8
secondary
#B8C36B
accent
#E345CF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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