#3A3AA2#3A3AA2

#3A3AA2 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.163 H 276.6°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#3A3AA2
RGBrgb(58, 58, 162)
HSLhsl(240, 47%, 43%)
HSVhsv(240, 64%, 64%)
CMYKcmyk(64.2%, 64.2%, 0%, 36.5%)
CIE-LABlab(30.72, 32.90, -56.35)
CIE-LCHlch(30.72, 65.25, 300.28°)
OKLaboklab(41.63% 0.0188 -0.1624)
OKLCHoklch(41.63% 0.163 276.6)
XYZxyz(9.7774, 6.5335, 34.9213)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3AA2 #A2A23A
analogous
#3A6EA2 #3A3AA2 #6E3AA2
triadic
#3A3AA2 #A23A3A #3AA23A
tetradic
#3A3AA2 #A23A6E #A2A23A #3AA26E
square
#3A3AA2 #A23A6E #A2A23A #3AA26E
split-complementary
#3A3AA2 #A26E3A #6EA23A
monochromatic
#1A1A48 #2A2A75 #3A3AA2 #5757C3 #8484D3

Accessibility & contrast

On white

9.10
#3A3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3A3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3AA2
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3AA2#FFFFFF#000000##FFFFFF
##3A3AA21.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3a3aa2;
/* rgb */ color: rgb(58, 58, 162);
/* oklch */ color: oklch(41.6% 0.163 276.6);
Tailwind
colors: {
  custom: {
    50: '#7c70be',
    500: '#3a3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #3a3aa2;
$custom-light: #7c70be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3aa2",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 240,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41626,
    "c": 0.16345,
    "h": 276.6
  },
  "luminance": 0.06534
}

Semantic roles & 50–950 ramp

primary
#3A3AA2
secondary
#BDBD7B
accent
#D751D7
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3A3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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