#3A3AAB#3A3AAB

#3A3AAB is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.175 H 275.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#3A3AAB
RGBrgb(58, 58, 171)
HSLhsl(240, 49%, 45%)
HSVhsv(240, 66%, 67%)
CMYKcmyk(66.1%, 66.1%, 0%, 32.9%)
CIE-LABlab(31.50, 35.99, -60.49)
CIE-LCHlch(31.50, 70.39, 300.75°)
OKLaboklab(42.43% 0.0181 -0.1745)
OKLCHoklch(42.43% 0.175 275.9)
XYZxyz(10.6063, 6.8650, 39.2863)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3AAB #ABAB3A
analogous
#3A73AB #3A3AAB #733AAB
triadic
#3A3AAB #AB3A3A #3AAB3A
tetradic
#3A3AAB #AB3A73 #ABAB3A #3AAB73
square
#3A3AAB #AB3A73 #ABAB3A #3AAB73
split-complementary
#3A3AAB #AB733A #73AB3A
monochromatic
#1B1B50 #2A2A7D #3A3AAB #5B5BC7 #8989D7

Accessibility & contrast

On white

8.85
#3A3AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3A3AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3AAB
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3AAB#FFFFFF#000000##FFFFFF
##3A3AAB1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a3aab;
/* rgb */ color: rgb(58, 58, 171);
/* oklch */ color: oklch(42.4% 0.175 275.9);
Tailwind
colors: {
  custom: {
    50: '#7e71c5',
    500: '#3a3aab',
    950: '#000000',
  },
}
SCSS
$custom: #3a3aab;
$custom-light: #7e71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3aab",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 49.345,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42433,
    "c": 0.17544,
    "h": 275.9
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

primary
#3A3AAB
secondary
#C1C180
accent
#D94FD9
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3A3AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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