#3A3CA1#3A3CA1

#3A3CA1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.160 H 276.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#3A3CA1
RGBrgb(58, 60, 161)
HSLhsl(239, 47%, 43%)
HSVhsv(239, 64%, 63%)
CMYKcmyk(64%, 62.7%, 0%, 36.9%)
CIE-LABlab(31.12, 31.28, -55.09)
CIE-LCHlch(31.12, 63.35, 299.59°)
OKLaboklab(41.9% 0.0172 -0.1587)
OKLCHoklch(41.9% 0.16 276.2)
XYZxyz(9.7917, 6.7037, 34.4892)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3CA1 #A19F3A
analogous
#3A6FA1 #3A3CA1 #6B3AA1
triadic
#3A3CA1 #A13A3C #3CA13A
tetradic
#3A3CA1 #A13A6F #A19F3A #3AA16B
square
#3A3CA1 #A13A6F #A19F3A #3AA16B
split-complementary
#3A3CA1 #A16B3A #6FA13A
monochromatic
#1A1A47 #2A2B74 #3A3CA1 #5658C2 #8385D2

Accessibility & contrast

On white

8.97
#3A3CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3A3CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3CA1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3CA1#FFFFFF#000000##FFFFFF
##3A3CA11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a3ca1;
/* rgb */ color: rgb(58, 60, 161);
/* oklch */ color: oklch(41.9% 0.160 276.2);
Tailwind
colors: {
  custom: {
    50: '#7c72be',
    500: '#3a3ca1',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ca1;
$custom-light: #7c72be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ca1",
  "rgb": {
    "r": 58,
    "g": 60,
    "b": 161
  },
  "hsl": {
    "h": 238.835,
    "s": 47.032,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41895,
    "c": 0.15958,
    "h": 276.2
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#3A3CA1
secondary
#BCBB7B
accent
#D451D7
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A3CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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