#3A3CA6#3A3CA6

#3A3CA6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.166 H 275.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#3A3CA6
RGBrgb(58, 60, 166)
HSLhsl(239, 48%, 44%)
HSVhsv(239, 65%, 65%)
CMYKcmyk(65.1%, 63.9%, 0%, 34.9%)
CIE-LABlab(31.54, 33.01, -57.42)
CIE-LCHlch(31.54, 66.23, 299.90°)
OKLaboklab(42.33% 0.0169 -0.1655)
OKLCHoklch(42.33% 0.166 275.8)
XYZxyz(10.2415, 6.8836, 36.8580)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3CA6 #A6A43A
analogous
#3A72A6 #3A3CA6 #6E3AA6
triadic
#3A3CA6 #A63A3C #3CA63A
tetradic
#3A3CA6 #A63A72 #A6A43A #3AA66E
square
#3A3CA6 #A63A72 #A6A43A #3AA66E
split-complementary
#3A3CA6 #A66E3A #72A63A
monochromatic
#1A1B4B #2A2C79 #3A3CA6 #585AC5 #8687D5

Accessibility & contrast

On white

8.84
#3A3CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3A3CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3CA6
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3CA6#FFFFFF#000000##FFFFFF
##3A3CA61.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a3ca6;
/* rgb */ color: rgb(58, 60, 166);
/* oklch */ color: oklch(42.3% 0.166 275.8);
Tailwind
colors: {
  custom: {
    50: '#7d72c1',
    500: '#3a3ca6',
    950: '#000000',
  },
}
SCSS
$custom: #3a3ca6;
$custom-light: #7d72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3ca6",
  "rgb": {
    "r": 58,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 238.889,
    "s": 48.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42331,
    "c": 0.16635,
    "h": 275.8
  },
  "luminance": 0.06884
}

Semantic roles & 50–950 ramp

primary
#3A3CA6
secondary
#BFBD7D
accent
#D550D8
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A3CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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