#3A3FA4#3A3FA4

#3A3FA4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.160 H 275.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#3A3FA4
RGBrgb(58, 63, 164)
HSLhsl(237, 48%, 44%)
HSVhsv(237, 65%, 64%)
CMYKcmyk(64.6%, 61.6%, 0%, 35.7%)
CIE-LABlab(32.11, 30.40, -55.29)
CIE-LCHlch(32.11, 63.09, 298.80°)
OKLaboklab(42.7% 0.0144 -0.1592)
OKLCHoklch(42.7% 0.16 275.2)
XYZxyz(10.2211, 7.1340, 35.9531)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FA4 #A49F3A
analogous
#3A74A4 #3A3FA4 #6A3AA4
triadic
#3A3FA4 #A43A3F #3FA43A
tetradic
#3A3FA4 #A43A74 #A49F3A #3AA46A
square
#3A3FA4 #A43A74 #A49F3A #3AA46A
split-complementary
#3A3FA4 #A46A3A #74A43A
monochromatic
#1A1C4A #2A2E77 #3A3FA4 #575DC4 #8588D4

Accessibility & contrast

On white

8.65
#3A3FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3A3FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FA4
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FA4#FFFFFF#000000##FFFFFF
##3A3FA41.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a3fa4;
/* rgb */ color: rgb(58, 63, 164);
/* oklch */ color: oklch(42.7% 0.160 275.2);
Tailwind
colors: {
  custom: {
    50: '#7c74c0',
    500: '#3a3fa4',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fa4;
$custom-light: #7c74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fa4",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 237.17,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42698,
    "c": 0.15986,
    "h": 275.2
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#3A3FA4
secondary
#BEBB7C
accent
#D150D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A3FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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